Skip to content

Commit d7b4e58

Browse files
committed
Run MacOS build & test on non-ARM architecture
1 parent 216a1b5 commit d7b4e58

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
os: [ ubuntu-latest, windows-latest, macos-latest ]
15+
os: [ ubuntu-latest, windows-latest, macos-13 ]
16+
17+
# NOTE: If we wanted to use `macos-latest` we would have to move the .NET Core 2.1 and 3.1 builds and test runs
18+
# to a separate job. This is because `macos-14` and newer are ARM-only and those target frameworks don't support
19+
# that architecture, causing `dotnet` to want to fall back to X64. However, once we install .NET 6 or newer,
20+
# we get a toolchain that only has ARM support and no X64 support, so that fallback will no longer work.
21+
# Using `macos-13` is (for the time being, while still available) the simpler solution as it is not ARM-based yet,
22+
# so there won't be any architecture mismatch in the first place.
1623

1724
runs-on: ${{ matrix.os }}
1825

0 commit comments

Comments
 (0)