From c4915542fe0a58d0f7d4d006be6ba1c1aa7abd18 Mon Sep 17 00:00:00 2001 From: Tim Krampitz Date: Sun, 4 Oct 2026 17:56:55 +0200 Subject: [PATCH] CI: build MAUI target for Android in CI and restore without Windows runtime to avoid missing Mono runtime pack when running locally with act --- .github/workflows/build.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3df7f0..2b53048 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,8 +23,7 @@ jobs: run: dotnet workload install maui - name: Restore - # Restore with a runtime identifier so the Windows MAUI runtime packs are downloaded - run: dotnet restore SlipItIn.slnx --runtime win-x64 + run: dotnet restore SlipItIn.slnx - name: Build Server-Stack run: | @@ -35,8 +34,8 @@ jobs: dotnet build SlipItIn.AppHost/SlipItIn.AppHost.csproj --no-restore --configuration Release - name: Build MAUI Client - # Build the MAUI project for the Windows runtime identifier so the proper runtime packs are used - run: dotnet build SlipItIn/SlipItIn.csproj --no-restore --configuration Debug -r win-x64 + # 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 -f net10.0-android - name: Run Server Tests run: dotnet test SlipItIn.Server.Tests/SlipItIn.Server.Tests.csproj --no-restore --configuration Release