Skip to content

Commit eb5a4c2

Browse files
authored
ci: build python wheels for macOS x86 (#8)
1 parent 0ef1ac6 commit eb5a4c2

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/python.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ jobs:
3939
- uses: actions/checkout@v4
4040
- name: Build wheels
4141
env:
42-
# CIBW_ARCHS_MACOS: "x86_64 arm64" # https://cibuildwheel.pypa.io/en/stable/faq/#cross-compiling
43-
MACOSX_DEPLOYMENT_TARGET: "13.3" # https://cibuildwheel.pypa.io/en/stable/cpp_standards/#macos-and-deployment-target-versions
42+
# <memory_resource> requires 14.0: https://developer.apple.com/xcode/cpp/
43+
# https://cibuildwheel.pypa.io/en/stable/cpp_standards/#macos-and-deployment-target-versions
44+
MACOSX_DEPLOYMENT_TARGET: "14.0"
45+
CIBW_ARCHS_MACOS: "x86_64 arm64" # https://cibuildwheel.pypa.io/en/stable/faq/#cross-compiling
4446
uses: pypa/cibuildwheel@v2.23.0
4547
- uses: actions/upload-artifact@v4
4648
with:
@@ -57,4 +59,4 @@ jobs:
5759
- uses: actions/upload-artifact@v4
5860
with:
5961
name: cibw-sdist
60-
path: dist/*.tar.gz
62+
path: ./dist/*.tar.gz

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ build = [
113113
# https://cibuildwheel.pypa.io/en/stable/options/#build-skip
114114
"cp3*-manylinux_x86_64",
115115
"cp3*-manylinux_aarch64",
116-
# "cp3*-macosx_x86_64",
116+
"cp3*-macosx_x86_64",
117117
"cp3*-macosx_arm64",
118118
"cp3*-win_amd64",
119119
]

0 commit comments

Comments
 (0)