Repository navigation
Support for .NET 11 #692
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - rel/* | |
| pull_request: | |
| branches: | |
| - main | |
| - rel/* | |
| env: | |
| ArtifactsDirectoryName: 'artifacts' | |
| BuildConfiguration: 'Debug' | |
| BuildPlatform: 'Any CPU' | |
| ContinuousIntegrationBuild: 'true' | |
| DotNet8Version: '8.x' | |
| DotNet10Version: '10.x' | |
| jobs: | |
| BuildAndTest: | |
| strategy: | |
| matrix: | |
| os: [windows-2022, windows-2025-vs2026, ubuntu-latest, macos-latest] | |
| include: | |
| - os: windows-2022 | |
| name: Windows VS2022 | |
| - os: windows-2025-vs2026 | |
| name: Windows VS2026 | |
| - os: ubuntu-latest | |
| name: Linux | |
| - os: macos-latest | |
| name: MacOS | |
| fail-fast: false | |
| name: Build and Test (${{ matrix.name }}) | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install .NET ${{ env.DotNet8Version }} and ${{ env.DotNet10Version }} | |
| uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: | | |
| ${{ env.DotNet8Version }} | |
| ${{ env.DotNet10Version }} | |
| - name: Build Solution | |
| id: build | |
| run: dotnet build "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/build.binlog" | |
| - name: Run Unit Tests (.NET Framework) | |
| if: ${{ startsWith(matrix.name, 'Windows') && !cancelled() && steps.build.outcome == 'success' }} | |
| run: dotnet test --no-restore --no-build --framework net472 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net472.binlog" | |
| - name: Run Unit Tests (.NET 8) | |
| if: ${{ !cancelled() && steps.build.outcome == 'success' }} | |
| run: dotnet test --no-restore --no-build --framework net8.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog" | |
| - name: Run Unit Tests (.NET 10) | |
| if: ${{ !cancelled() && steps.build.outcome == 'success' }} | |
| run: dotnet test --no-restore --no-build --framework net10.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net10.0.binlog" | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v7 | |
| if: success() | |
| with: | |
| name: ${{ env.ArtifactsDirectoryName }}-${{ matrix.name }} | |
| path: ${{ env.ArtifactsDirectoryName }} |