Update .NET version in release pipeline to 11.x and include preview version #5088
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: Gated-Windows | |
| on: | |
| push: | |
| branches: | |
| - 'releases/**' | |
| - dev | |
| pull_request: | |
| branches: | |
| - 'releases/**' | |
| - dev | |
| jobs: | |
| build_windows: | |
| runs-on: [windows-latest] | |
| strategy: | |
| fail-fast: false # Disable the auto cancelling of all in-progress and queued jobs in the matrix if any job in the matrix fails. | |
| matrix: | |
| dotnet-version: [ '9.0.x', '8.0.x' ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v2 | |
| id: filter | |
| with: | |
| filters: | | |
| src: | |
| - 'src/**' | |
| - 'test/**' | |
| - 'build/**' | |
| - 'samples/**' | |
| - '*.cmd' | |
| - '*.ps1' | |
| - '**.props' | |
| - '**.csproj' | |
| - '**.targets' | |
| - '*.sh' | |
| - '*.sln' | |
| - name: Enable git long paths | |
| run: git config --global core.longpaths true | |
| if: steps.filter.outputs.src == 'true' | |
| - name: Update SubModules | |
| run: git submodule update --init --recursive | |
| if: steps.filter.outputs.src == 'true' | |
| - name: Setup dotnet ${{ matrix.dotnet-version }} | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ matrix.dotnet-version }} | |
| # Remove it when .NET 11 is GA. | |
| - name: Setup .NET 11 daily SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '11.0.x' | |
| dotnet-quality: 'daily' | |
| - name: Display dotnet version | |
| run: dotnet --version | |
| - name: Build with dotnet | |
| run: "dotnet build AzureSignalR.sln" | |
| if: steps.filter.outputs.src == 'true' | |
| - name: Test | |
| # exclude E2Etest until creating test resources are supported | |
| run: dotnet test --no-build --filter "FullyQualifiedName!~Microsoft.Azure.SignalR.E2ETests&FullyQualifiedName!~Microsoft.Azure.SignalR.AspNet.E2ETests" --logger trx --results-directory "TestResults-ubuntu-${{ matrix.dotnet-version }}" | |
| - name: Upload dotnet test results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dotnet-results-${{ matrix.dotnet-version }} | |
| path: TestResults-ubuntu-${{ matrix.dotnet-version }} | |
| # Use always() to always run this step to publish test results when there are test failures | |
| if: ${{ always() }} |