mirror of
https://github.com/ivuorinen/hiha-arvio.git
synced 2026-01-26 03:14:00 +00:00
fix: conditionally include iOS/macOS targets only on macOS
- Add MSBuild condition to only include net8.0-ios and net8.0-maccatalyst on macOS - On Linux/Windows, only net8.0 is included as a target framework - Fixes GitHub dependency submission failing on Ubuntu runners - Remove wasm-tools installation from test workflow (no longer needed) This fixes the root cause of NETSDK1147 errors on non-macOS platforms.
This commit is contained in:
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@@ -24,9 +24,6 @@ jobs:
|
||||
with:
|
||||
dotnet-version: '8.0.x'
|
||||
|
||||
- name: Install WebAssembly Tools workload
|
||||
run: dotnet workload install wasm-tools-net8
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore tests/HihaArvio.Tests/HihaArvio.Tests.csproj /p:TargetFrameworks=net8.0
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
<PropertyGroup>
|
||||
<!-- Per spec: iOS (primary), Web (Blazor), macOS (tertiary) -->
|
||||
<!-- net8.0 included for unit testing without platform dependencies -->
|
||||
<TargetFrameworks>net8.0;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
|
||||
<!-- Include iOS/macOS targets only on macOS (where they can be built) -->
|
||||
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('OSX'))">net8.0;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
|
||||
<!-- On Linux/Windows, only include net8.0 -->
|
||||
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('OSX'))">net8.0</TargetFrameworks>
|
||||
|
||||
<!-- Note for MacCatalyst:
|
||||
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
|
||||
|
||||
Reference in New Issue
Block a user