Skip to content

Commit 476f3ae

Browse files
committed
Bump our macOS CI runners
1 parent 2968bee commit 476f3ae

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

.github/scripts/install_deps.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This script requires `sh` instead of `bash` because the latter is not always installed on FreeBSD.
33
set -eu
44

5-
case "${1%-*}" in
5+
case "${1%%-*}" in
66
ubuntu|debian)
77
sudo apt-get -qq update
88
sudo apt-get install -yq bison libpng-dev pkgconf
@@ -14,7 +14,8 @@ case "${1%-*}" in
1414
brew install bison md5sha1sum make
1515
# Export `bison` to allow using the version we install from Homebrew,
1616
# instead of the outdated one preinstalled on macOS (which doesn't even support `-Wall`...)
17-
export PATH="/opt/homebrew/opt/bison/bin:$PATH"
17+
# This path ↓ is used on Intel macOS, and this one ↓ on ARM ones.
18+
export PATH="/usr/local/opt/bison/bin:/opt/homebrew/opt/bison/bin:$PATH"
1819
printf 'PATH=%s\n' "$PATH" >>"$GITHUB_ENV" # Make it available to later CI steps too
1920
;;
2021
freebsd)
@@ -28,6 +29,7 @@ case "${1%-*}" in
2829
;;
2930
*)
3031
echo "::error:: Cannot install deps for OS '$1'"
32+
exit 1
3133
;;
3234
esac
3335

.github/workflows/create-release-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
if-no-files-found: error
5252

5353
macos:
54-
runs-on: macos-14
54+
runs-on: macos-26
5555
steps:
5656
- name: Checkout repo
5757
uses: actions/checkout@v6

.github/workflows/testing.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ jobs:
3636
unix:
3737
strategy:
3838
matrix:
39-
os: [ubuntu-22.04, macos-14]
39+
os: [ubuntu-22.04, macos-15-intel, macos-26]
4040
cxx: [g++, clang++]
4141
buildsys: [make, cmake]
4242
exclude:
43-
- { os: macos-14, cxx: g++ } # Don't use `g++` on macOS; it's just an alias to `clang++`.
43+
- { os: macos-15-intel, cxx: g++ } # Don't use `g++` on macOS; it's just an alias to `clang++`.
44+
- { os: macos-26, cxx: g++ }
4445
fail-fast: false
4546
runs-on: ${{ matrix.os }}
4647
steps:
@@ -106,7 +107,7 @@ jobs:
106107
ctest --test-dir build --schedule-random
107108
108109
macos-static:
109-
runs-on: macos-14
110+
runs-on: macos-26
110111
steps:
111112
- name: Checkout repo
112113
uses: actions/checkout@v6
@@ -145,7 +146,7 @@ jobs:
145146
uses: actions/cache@v5
146147
with:
147148
path: ${{ fromJSON(steps.test-deps-cache-params.outputs.paths) }}
148-
key: macos-14-${{ steps.test-deps-cache-params.outputs.hash }}
149+
key: macos-26-${{ steps.test-deps-cache-params.outputs.hash }}
149150
- name: Fetch test dependency repositories
150151
if: steps.test-deps-cache.outputs.cache-hit != 'true'
151152
continue-on-error: true

test/fetch-test-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ case "$actionname" in
5858
action() { # _ _ repo _
5959
# libbet depends on PIL to build
6060
if [ "$3" = "libbet" ]; then
61-
case "${osname%-*}" in
61+
case "${osname%%-*}" in
6262
ubuntu | debian)
6363
sudo apt-get install python3-pil
6464
;;

0 commit comments

Comments
 (0)