Skip to content

Commit 76702e4

Browse files
authored
Pin MacOS Github runner version in ci to MacOS 15 (#565)
Rather than using Macos-latest this makes the ci used a pinned version of Macos (set to the latest version available). This is so if you happen to have an issue with the MacOS build you know exactly which version of MacOS it is running, rather than having to dig into the ci, or Github runner documentation.
1 parent 86d142f commit 76702e4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
os: [ubuntu-22.04, macos-latest, windows-2025]
10+
os: [ubuntu-22.04, macos-15, windows-2025]
1111
clang_version: [10.0.0]
1212
# use different LLVM versions among oses because of the lack of
1313
# official assets on github.
1414
include:
1515
- os: ubuntu-22.04
1616
clang_version: 10.0.0
1717
llvm_asset_suffix: x86_64-linux-gnu-ubuntu-18.04
18-
- os: macos-latest
18+
- os: macos-15
1919
clang_version: 10.0.0
2020
llvm_asset_suffix: x86_64-apple-darwin
2121
- os: windows-2025
@@ -24,7 +24,7 @@ jobs:
2424
clang_version: 16.0.0
2525
llvm_asset_suffix: x86_64-linux-gnu-ubuntu-18.04
2626
enable_pic: true
27-
- os: macos-latest
27+
- os: macos-15
2828
clang_version: 15.0.7
2929
llvm_asset_suffix: x86_64-apple-darwin21.0
3030
- os: windows-2025
@@ -70,7 +70,7 @@ jobs:
7070
echo "CC=$CLANG_DIR/clang" >> $GITHUB_ENV
7171
echo "AR=$CLANG_DIR/llvm-ar" >> $GITHUB_ENV
7272
echo "NM=$CLANG_DIR/llvm-nm" >> $GITHUB_ENV
73-
if: matrix.os == 'macos-latest'
73+
if: matrix.os == 'macos-15'
7474

7575
- name: Install LLVM tools (Linux)
7676
shell: bash
@@ -156,20 +156,20 @@ jobs:
156156
runs-on: ${{ matrix.os }}
157157
strategy:
158158
matrix:
159-
os: [ubuntu-latest, macos-latest, windows-2025]
159+
os: [ubuntu-latest, macos-15, windows-2025]
160160
steps:
161161
- uses: actions/checkout@v4.1.7
162162
with:
163163
submodules: true
164164
- name: Install Rust (rustup)
165165
shell: bash
166166
run: rustup update stable --no-self-update && rustup default stable
167-
if: matrix.os != 'macos-latest'
167+
if: matrix.os != 'macos-15'
168168
- name: Install Rust (macos)
169169
run: |
170170
curl https://sh.rustup.rs | sh -s -- -y
171171
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
172-
if: matrix.os == 'macos-latest'
172+
if: matrix.os == 'macos-15'
173173
- run: cargo fetch
174174
working-directory: tools/wasi-headers
175175
- run: cargo build

0 commit comments

Comments
 (0)