Skip to content

Commit c9f9809

Browse files
committed
Attempt to fix proc-arch issues in mac.
1 parent 92bb1ec commit c9f9809

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
with:
4747
dotnet-version: 8.0.x
4848

49+
# Show dotnet info for debugging architecture issues
50+
- name: Show .NET info
51+
run: dotnet --info
52+
4953
# Use the Dotnet Test command to load dependencies, build, and test the code.
5054
# We have to run the test projects individually so CoseSignTool.Tests can run under arm64 on the Mac runner.
5155
- name: Build and Test debug

Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44
<EnableMSTestRunner>true</EnableMSTestRunner>
55
<TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure>
66
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
7+
<!-- Configure architecture for macOS ARM64 runners -->
8+
<TestingPlatformArchitecture Condition="'$(OS)' == 'Unix' AND $([MSBuild]::IsOSPlatform('OSX'))">arm64</TestingPlatformArchitecture>
9+
<!-- Alternative: Use RuntimeIdentifier on macOS -->
10+
<RuntimeIdentifier Condition="'$(OS)' == 'Unix' AND $([MSBuild]::IsOSPlatform('OSX')) AND '$(RuntimeIdentifier)' == ''">osx-arm64</RuntimeIdentifier>
711
</PropertyGroup>
812
</Project>

0 commit comments

Comments
 (0)