diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a88ed6b..9fa5cf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,12 @@ concurrency: jobs: tests: runs-on: ubuntu-latest - timeout-minutes: 15 + name: Tests dotnet ${{ matrix.dotnet-version }} + timeout-minutes: 60 strategy: + fail-fast: false matrix: dotnet-version: [8, 9, 10] - project: ['.'] steps: - name: Checkout code uses: actions/checkout@v6 @@ -27,10 +28,42 @@ jobs: - name: Build projects shell: bash - working-directory: ${{ matrix.project }} - run: dotnet build ./all.csproj + run: dotnet build ./all.csproj -f net${{ matrix.dotnet-version }}.0 - name: Run tests shell: bash - working-directory: ${{ matrix.project }} - run: dotnet test ./all.csproj /p:BuildTestsOnly=true --no-build + run: dotnet test ./all.csproj /p:BuildTestsOnly=true --no-build -f net${{ matrix.dotnet-version }}.0 + + benchmarks: + runs-on: ubuntu-latest + name: Build Benchmarks + timeout-minutes: 15 + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: 10 + + - name: Build benchmarks + shell: bash + run: dotnet build ./all.csproj /p:BuildBenchmarksOnly=true -c Release -f net10.0 + + samples: + runs-on: ubuntu-latest + name: Build Samples + timeout-minutes: 15 + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: 10 + + - name: Build samples + shell: bash + run: dotnet build ./all.csproj /p:BuildSamplesOnly=true -c Release -f net10.0 diff --git a/all.csproj b/all.csproj index 7d9a243..e4f6333 100644 --- a/all.csproj +++ b/all.csproj @@ -2,15 +2,25 @@ false + false + false false - + - + + + + + + + + +