Apply required updates to BlazorEmpty project template (#11877) #192
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: bit platform CI - release | |
| on: | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| env: | |
| DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true | |
| jobs: | |
| build-release: | |
| if: startsWith(github.event.pull_request.title, 'Prerelease') || startsWith(github.event.pull_request.title, 'Release') || startsWith(github.event.pull_request.title, 'Version') | |
| name: build and test for release | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v5 | |
| - name: Setup .NET 10.0 | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| global-json-file: src/global.json | |
| - name: Setup .NET 9.0 | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Setup .NET 8.0 | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 8.0.x | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install wasm and maui | |
| run: cd src && dotnet workload install maui-android wasm-tools wasm-tools-net9 wasm-tools-net8 | |
| - name: InstallNodejsDependencies | |
| continue-on-error: true # Error MSB4057, not all csproj files have InstallNodejsDependencies target. | |
| run: dotnet build src/bit.ci.release.slnx -t:InstallNodejsDependencies -m:1 -f net10.0 | |
| - name: dotnet build | |
| run: dotnet build src/bit.ci.release.slnx -c Release |