Skip to content

Commit 890730c

Browse files
committed
build(dev): build separate wheels for Mac OS architectures
The `macos-13` (GitHub-hosted) runner will be unavailable by Dec 4 2025. See the [GitHub notice]. Apparently, Apple has deprecated support for Intel-based x86_64 architecture. This means building a universal wheel will no longer be useful. This patch builds a separate wheel for x86_64 and arm64 architectures. Doing this also allows `cibuildwheel` to properly test each architecture individually. Whereas before, there were warnings about tests not getting run for arm64 on a x86_64 runner. > [!WARNING] > Beware, the github-hosted `macos-15-intel` runner is provided to sunset x86_64 MacOS runners. > The `macos-15-intel` runner will become unavailable in August 2027. > Afterward, the CI will only be able to compile arm64 wheels for MacOS. [GitHub notice]: actions/runner-images#13046
1 parent 6d8ca75 commit 890730c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/wheels.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
os: ubuntu-24.04
2626
- name: linux-arm
2727
os: ubuntu-24.04-arm
28-
- name: macos
29-
os: macos-13
28+
- name: macos-intel
29+
os: macos-15-intel
30+
- name: macos-arm
31+
os: macos-15
3032
- name: windows-x64
3133
os: windows-latest
3234
- name: windows-x86

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ select = "*-musllinux*"
2525
repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib auditwheel repair -w {dest_dir} {wheel}"
2626

2727
[tool.cibuildwheel.macos]
28-
archs = ["universal2"]
2928
environment = {LIBGIT2_VERSION="1.9.1", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.3.3", LIBGIT2="/Users/runner/work/pygit2/pygit2/ci"}
3029
repair-wheel-command = "DYLD_LIBRARY_PATH=/Users/runner/work/pygit2/pygit2/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
3130

0 commit comments

Comments
 (0)