ci: test on macOS M1 (#27276)

Problem: No test coverage on ARM.

Solution: Add `macos-14` tests, which now run on M1. Skip unit tests as these don't work on M1, see #26145. Also test universal build on M1.

Note: `macos-14` will be `macos-latest` in Q2 2024, so we'll want to switch these to keep Intel and unittest coverage on macos (while GH still offers Intel runners).
This commit is contained in:
Christian Clason
2024-02-17 13:12:39 +01:00
committed by GitHub
parent ea0737c838
commit bf830a53f5
2 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,7 @@ env:
jobs:
macos-universal:
runs-on: macos-latest
runs-on: macos-14
timeout-minutes: 20
steps:
- uses: actions/checkout@v4

View File

@ -104,6 +104,7 @@ jobs:
{ runner: ubuntu-22.04, flavor: tsan, cc: clang, flags: -D ENABLE_TSAN=ON },
{ runner: ubuntu-22.04, cc: gcc },
{ runner: macos-12, cc: clang, flags: -D CMAKE_FIND_FRAMEWORK=NEVER, deps_flags: -D CMAKE_FIND_FRAMEWORK=NEVER },
{ runner: macos-14, cc: clang, flags: -D CMAKE_FIND_FRAMEWORK=NEVER, deps_flags: -D CMAKE_FIND_FRAMEWORK=NEVER },
{ runner: ubuntu-22.04, flavor: puc-lua, cc: gcc, deps_flags: -D USE_BUNDLED_LUAJIT=OFF -D USE_BUNDLED_LUA=ON, flags: -D PREFER_LUA=ON },
]
test: [unittest, functionaltest, oldtest]
@ -112,6 +113,8 @@ jobs:
build: { flavor: tsan }
- test: unittest
build: { flavor: puc-lua }
- test: unittest
build: { runner: macos-14 } # unittests don't work on M1 #26145
- test: oldtest
build: { flavor: tsan }
runs-on: ${{ matrix.build.runner }}