Skip to content

Commit b5038f5

Browse files
committed
disable Mono on GitHub Actions osx-arm64 runner image
1 parent cc89adf commit b5038f5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/TargetFrameworks.props

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,18 @@ SPDX-License-Identifier: MIT
3737
<!-- disable Mono on GitHub Actions Ubuntu 24.04 runner images -->
3838
<EnableTargetFrameworkNetFx Condition=" '$(GITHUB_ACTIONS)' == 'true' ">false</EnableTargetFrameworkNetFx>
3939
</PropertyGroup>
40+
41+
<!-- On MacOS (arm64) -->
42+
<PropertyGroup
43+
Condition="
44+
$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier.StartsWith('osx-arm64')) or
45+
(
46+
$([System.OperatingSystem]::IsMacOS()) and
47+
$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.StartsWith('Arm64'))
48+
)
49+
"
50+
>
51+
<!-- disable Mono on GitHub Actions osx-arm64 runner images -->
52+
<EnableTargetFrameworkNetFx Condition=" '$(GITHUB_ACTIONS)' == 'true' ">false</EnableTargetFrameworkNetFx>
53+
</PropertyGroup>
4054
</Project>

0 commit comments

Comments
 (0)