From d7b4e584113a68f26c996ba482cd60858b30644d Mon Sep 17 00:00:00 2001 From: Dominique Schuppli Date: Fri, 30 Aug 2024 17:12:57 +0200 Subject: [PATCH] Run MacOS build & test on non-ARM architecture --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a6ee2a9b..ff9ea3507 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,14 @@ jobs: strategy: matrix: - os: [ ubuntu-latest, windows-latest, macos-latest ] + os: [ ubuntu-latest, windows-latest, macos-13 ] + + # 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 + # to a separate job. This is because `macos-14` and newer are ARM-only and those target frameworks don't support + # that architecture, causing `dotnet` to want to fall back to X64. However, once we install .NET 6 or newer, + # we get a toolchain that only has ARM support and no X64 support, so that fallback will no longer work. + # Using `macos-13` is (for the time being, while still available) the simpler solution as it is not ARM-based yet, + # so there won't be any architecture mismatch in the first place. runs-on: ${{ matrix.os }}