Skip to content

Commit 0eb0cf9

Browse files
committed
[CI] Build on macos-14 rather than macos-latest
In emsdk we actually build on macos-13, but sadly there is not macos-13 available in github actions.
1 parent d3029d2 commit 0eb0cf9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ jobs:
5252
strategy:
5353
matrix:
5454
# Test on the oldest support Ubuntu version in addition to `latest`.
55-
os: [ubuntu-22.04, ubuntu-latest, macos-latest, windows-latest, windows-11-arm]
55+
# Build using the oldest support macOS version. For emsdk this is
56+
# currently macos-13, but unfortunately that doesn't exist in github
57+
# actions so we settle for macos-14.
58+
os: [ubuntu-22.04, ubuntu-latest, macos-14, windows-latest, windows-11-arm]
5659
steps:
5760
- uses: actions/setup-python@v5
5861
with:
@@ -74,7 +77,7 @@ jobs:
7477

7578
- name: install ninja (macos)
7679
run: brew install ninja
77-
if: matrix.os == 'macos-latest'
80+
if: startsWith(matrix.os, 'macos')
7881

7982
- name: install ninja (win)
8083
run: choco install ninja
@@ -94,7 +97,7 @@ jobs:
9497

9598
- name: cmake (macos)
9699
run: cmake -S . -B out -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=out/install '-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64'
97-
if: matrix.os == 'macos-latest'
100+
if: startsWith(matrix.os, 'macos')
98101

99102
- name: cmake (win)
100103
# -G "Visual Studio 15 2017"

0 commit comments

Comments
 (0)