CI: build MAUI target for Android in CI and restore without Windows runtime to avoid missing Mono runtime pack when running locally with act
All checks were successful
Build / build (pull_request) Successful in 2m29s

This commit is contained in:
Tim Krampitz
2026-10-04 17:56:55 +02:00
parent 8b5dd6f45d
commit c4915542fe

View File

@@ -23,8 +23,7 @@ jobs:
run: dotnet workload install maui run: dotnet workload install maui
- name: Restore - name: Restore
# Restore with a runtime identifier so the Windows MAUI runtime packs are downloaded run: dotnet restore SlipItIn.slnx
run: dotnet restore SlipItIn.slnx --runtime win-x64
- name: Build Server-Stack - name: Build Server-Stack
run: | run: |
@@ -35,8 +34,8 @@ jobs:
dotnet build SlipItIn.AppHost/SlipItIn.AppHost.csproj --no-restore --configuration Release dotnet build SlipItIn.AppHost/SlipItIn.AppHost.csproj --no-restore --configuration Release
- name: Build MAUI Client - name: Build MAUI Client
# Build the MAUI project for the Windows runtime identifier so the proper runtime packs are used # Build the MAUI project for Android only in CI to avoid requiring Windows runtime packs
run: dotnet build SlipItIn/SlipItIn.csproj --no-restore --configuration Debug -r win-x64 run: dotnet build SlipItIn/SlipItIn.csproj --no-restore --configuration Debug -f net10.0-android
- name: Run Server Tests - name: Run Server Tests
run: dotnet test SlipItIn.Server.Tests/SlipItIn.Server.Tests.csproj --no-restore --configuration Release run: dotnet test SlipItIn.Server.Tests/SlipItIn.Server.Tests.csproj --no-restore --configuration Release