Skip to content

Commit bc1c246

Browse files
committed
Merge branch 'maintenance/v0.11-test-build'
2 parents 6daafb9 + ec05a99 commit bc1c246

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.github/workflows/wheel_tests_and_release.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: [ubuntu-18.04]
27-
cibw_python: [ "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
28-
cibw_manylinux: [ manylinux2014 ]
29-
cibw_arch: [ "x86_64", "i686" ]
27+
cibw_python: ["cp38-*", "cp39-*", "cp310-*", "cp311-*"]
28+
cibw_manylinux: [manylinux2014]
29+
cibw_arch: ["x86_64"]
3030
steps:
3131
- uses: actions/checkout@v3
3232
with:
@@ -46,7 +46,6 @@ jobs:
4646
CIBW_ARCHS_LINUX: ${{ matrix.cibw_arch }}
4747
CIBW_SKIP: "*-musllinux_*"
4848
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }}
49-
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }}
5049
CIBW_ENVIRONMENT_PASS_LINUX: CESIUM_LINK_FLAGS
5150
CESIUM_LINK_FLAGS: "-Wl,--strip-debug"
5251
- uses: actions/upload-artifact@v3
@@ -74,21 +73,38 @@ jobs:
7473
with:
7574
python-version: '3.10'
7675

76+
# See:
77+
# https://cibuildwheel.readthedocs.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
78+
# https://github.com/pypa/cibuildwheel/issues/1414
79+
- name: Install experimental MacOSX Py38
80+
if: startsWith(matrix.cibw_python, 'cp38') && (matrix.cibw_arch == 'arm64')
81+
run: |
82+
curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
83+
sudo installer -pkg /tmp/Python38.pkg -target /
84+
sh "/Applications/Python 3.8/Install Certificates.command"
85+
7786
- name: Install cibuildwheel
7887
run: |
7988
python -m pip install cibuildwheel
8089
8190
- name: Build wheels for CPython Mac OS
8291
run: |
83-
export MACOSX_DEPLOYMENT_TARGET=12.0
92+
if [[ "$CIBW_ARCHS_MACOS" == arm64 ]]; then
93+
# SciPy requires 12.0 on arm to prevent kernel panics
94+
# https://github.com/scipy/scipy/issues/14688
95+
# so being conservative, we just do the same here
96+
export MACOSX_DEPLOYMENT_TARGET=12.0
97+
else
98+
export MACOSX_DEPLOYMENT_TARGET=10.9
99+
fi
100+
84101
echo MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET}
85102
86103
python -m cibuildwheel --output-dir dist
87104
env:
88105
CIBW_BUILD: ${{ matrix.cibw_python }}
89106
CIBW_ARCHS_MACOS: ${{ matrix.cibw_arch }}
90107
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
91-
CIBW_MANYLINUX_I686_IMAGE: manylinux1
92108
CIBW_TEST_SKIP: "*-macosx_arm64"
93109

94110
- uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)