Skip to content

fix: resolve NU1605 blocking TodoApp.Uno restore by bumping Uno.Sdk to 5.6.54 #17

fix: resolve NU1605 blocking TodoApp.Uno restore by bumping Uno.Sdk to 5.6.54

fix: resolve NU1605 blocking TodoApp.Uno restore by bumping Uno.Sdk to 5.6.54 #17

Workflow file for this run

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 yet.
# #506 fixed the NU1605 restore blocker that used to affect every head (bumped Uno.Sdk in
# samples/todoapp/TodoApp.Uno/global.json from 5.4.5 to 5.6.54), so TodoApp.Uno.csproj now
# restores cleanly. However, restoring cleanly surfaced a separate, pre-existing bug: on every
# Skia-based head (android, ios, maccatalyst, browserwasm, desktop - confirmed for desktop and
# browserwasm; android/ios/maccatalyst require workloads not available where this was
# verified), CommunityToolkit.WinUI.Behaviors 8.2.250402 resolves
# Uno.Microsoft.Xaml.Behaviors.Interactivity.WinUI 3.0.0-dev.17.g7c09b9114d instead of the real
# Microsoft.Xaml.Behaviors.WinUI.Managed package (which the windows head still gets), and that
# substitute is missing the Microsoft.Xaml.Interactions.Core types used in
# Views/TodoListPage.xaml, so build fails with UXAML0001/CS1061 (EventTriggerBehavior could not
# be found). This was never surfaced before because restore always failed first. See the
# tracking issue for this build failure (filed as a #506 follow-up) - re-add this job once
# that's resolved and every head restores AND builds 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."