diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa02fe7..a162e0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,9 +7,16 @@ on: pull_request: jobs: - build: - runs-on: ubuntu-24.04 + strategy: + fail-fast: false + matrix: + os: + - ubuntu-24.04 + - windows-2025 + + runs-on: ${{ matrix.os }} + env: DOTNET_NOLOGO: true @@ -19,18 +26,16 @@ jobs: with: submodules: true - # Build with .NET 10.0 SDK - # Test with .NET 8.0 and 10.0 - - name: Setup .NET 8.0 and 10.0 - uses: actions/setup-dotnet@v5.2.0 - with: - dotnet-version: | - 8.0.x - 10.0.x - - - name: Build - run: | - dotnet build - dotnet test - # Pack production packages to validate compatibility - dotnet pack -p:ContinuousIntegrationBuild=true + - run: dotnet build + + - name: Test net48 + if: runner.os == 'Windows' + run: dotnet test --no-build -f net48 + + - name: Test net8.0 + run: dotnet test --no-build -f net8.0 + + - name: Test net10.0 + run: dotnet test --no-build -f net10.0 + + - run: dotnet pack -p:ContinuousIntegrationBuild=true \ No newline at end of file