Skip to content

Commit 5a65e8a

Browse files
authored
Switch to macOS 12 runners to fix building of wheels for macOS (#17319)
This changes the release artefacts workflow to use `macos-12` runners instead of `macos-11`, as the latter will be fully deprecated in a few days. This also updates `cibuildwheel` to a newer version, as it would not 'repair' the macOS wheels correctly The difference is that now instead of outputting a macOS 11+ compatible wheel, we output a macOS 12+ compatible one. This is fine, as macOS 11 is considered EOL since September 2023. We can also expect that macOS 12 will be considered EOL in September 2024, as Apple usually supports the last 3 macOS version, and macOS 15 is scheduled to be released around that time.
1 parent edfb7aa commit 5a65e8a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/release-artifacts.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
runs-on: ${{ matrix.os }}
103103
strategy:
104104
matrix:
105-
os: [ubuntu-20.04, macos-11]
105+
os: [ubuntu-20.04, macos-12]
106106
arch: [x86_64, aarch64]
107107
# is_pr is a flag used to exclude certain jobs from the matrix on PRs.
108108
# It is not read by the rest of the workflow.
@@ -112,9 +112,9 @@ jobs:
112112
exclude:
113113
# Don't build macos wheels on PR CI.
114114
- is_pr: true
115-
os: "macos-11"
115+
os: "macos-12"
116116
# Don't build aarch64 wheels on mac.
117-
- os: "macos-11"
117+
- os: "macos-12"
118118
arch: aarch64
119119
# Don't build aarch64 wheels on PR CI.
120120
- is_pr: true
@@ -130,7 +130,7 @@ jobs:
130130
python-version: "3.x"
131131

132132
- name: Install cibuildwheel
133-
run: python -m pip install cibuildwheel==2.16.2
133+
run: python -m pip install cibuildwheel==2.19.1
134134

135135
- name: Set up QEMU to emulate aarch64
136136
if: matrix.arch == 'aarch64'

changelog.d/17319.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Switch to macOS 12 runners to fix building of wheels for macOS.

0 commit comments

Comments
 (0)