Skip to content

Commit

Permalink
ci: Build and run on macOS on both x86_64 and arm64
Browse files Browse the repository at this point in the history
The "macos-latest" runners are arm64 these days, while "macos-13"
is older runners that are x86_64. Keep running tests on both,
for as long as the x86_64 based runners are available.
  • Loading branch information
mstorsjo committed Nov 24, 2024
1 parent 272e3ef commit f15393a
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ jobs:
- run: meson test -C builddir -v

macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
runner:
- macos-13 # x86_64
- macos-latest # aarch64
runs-on: ${{matrix.runner}}
steps:
- uses: actions/checkout@v3
- run: brew install nasm meson
Expand All @@ -105,15 +111,6 @@ jobs:
- run: CFLAGS=-Werror make -j$(nproc) ARCH=aarch64 CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++
- run: qemu-aarch64 -L /usr/aarch64-linux-gnu/ ./codec_unittest

macos-cross-arm64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- run: make gmp-bootstrap
- run: make gtest-bootstrap
- run: c++ --version
- run: CFLAGS=-Werror make -j$(sysctl -n hw.ncpu) ARCH=arm64

ios-cross-arm64:
runs-on: macos-latest
steps:
Expand Down

0 comments on commit f15393a

Please sign in to comment.