ci: pin iOS workload set + Xcode version for todoapp-avalonia/maui iOS builds #14
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: Build Samples | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: [ 'samples/**', '.github/workflows/build-samples*.yml' ] | |
| pull_request: | |
| branches: [ main ] | |
| paths: [ 'samples/**', '.github/workflows/build-samples*.yml' ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| datasync-server: | |
| uses: ./.github/workflows/build-samples-datasync-server.yml | |
| datasync-server-cosmosdb: | |
| uses: ./.github/workflows/build-samples-datasync-server-cosmosdb.yml | |
| todoapp-mvc: | |
| uses: ./.github/workflows/build-samples-todoapp-mvc.yml | |
| todoapp-blazor-wasm: | |
| uses: ./.github/workflows/build-samples-todoapp-blazor-wasm.yml | |
| todoapp-tutorial: | |
| uses: ./.github/workflows/build-samples-todoapp-tutorial.yml | |
| todoapp-avalonia: | |
| uses: ./.github/workflows/build-samples-todoapp-avalonia.yml | |
| todoapp-windows: | |
| uses: ./.github/workflows/build-samples-todoapp-windows.yml | |
| todoapp-maui: | |
| uses: ./.github/workflows/build-samples-todoapp-maui.yml | |
| # NOTE: todoapp-uno (build-samples-todoapp-uno.yml) is intentionally NOT wired in here. | |
| # TodoApp.Uno.csproj fails to restore on every head with: | |
| # NU1605: Detected package downgrade: Uno.WinUI from 5.5.87 to 5.4.22 | |
| # TodoApp.Uno -> CommunityToolkit.WinUI.Behaviors 8.2.250402 -> Uno.WinUI (>= 5.5.87) | |
| # TodoApp.Uno -> Uno.WinUI (>= 5.4.22) | |
| # This is unconditional (CommunityToolkit.WinUI.Behaviors has no TFM condition on its | |
| # PackageReference), so it blocks every TFM, not just the desktop head as originally | |
| # suspected. See https://github.com/CommunityToolkit/Datasync/issues/506, which is tracking | |
| # the underlying Uno.WinUI/CommunityToolkit.WinUI.Behaviors version conflict. Re-enable this | |
| # job (add it back to the jobs list and to all-samples-built's needs below) once #506 is | |
| # resolved and TodoApp.Uno.csproj restores cleanly. | |
| # Single aggregation point so branch protection only needs to require one check, | |
| # regardless of how many sample workflows are added over time. | |
| all-samples-built: | |
| name: All samples built | |
| if: always() | |
| needs: | |
| - datasync-server | |
| - datasync-server-cosmosdb | |
| - todoapp-mvc | |
| - todoapp-blazor-wasm | |
| - todoapp-tutorial | |
| - todoapp-avalonia | |
| - todoapp-windows | |
| - todoapp-maui | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check sample build results | |
| run: | | |
| if [ "${{ contains(needs.*.result, 'failure') }}" = "true" ] || [ "${{ contains(needs.*.result, 'cancelled') }}" = "true" ]; then | |
| echo "One or more sample builds failed." | |
| exit 1 | |
| fi | |
| echo "All samples built successfully." |