Skip to content

Commit

Permalink
ci: fix wheels build for osx
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Jan 27, 2025
1 parent 56c50f0 commit a671e07
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,22 @@ jobs:
- os: macos-latest
target: macosx
arch: x86_64
# Skipping macos arm64 builds because cibuildwheel currently doesn't support testing
# arm64 macos wheels on github action runners.
# See: https://github.com/pypa/cibuildwheel/issues/2111
# - os: macos-latest
# target: macosx
# arch: arm64
- os: macos-latest
target: macosx
arch: arm64

steps:
- uses: actions/checkout@v4
with:
submodules: "true"

- uses: actions/setup-python@v5
if: runner.os != 'macOS' || runner.arch != 'ARM64'

# See: https://cibuildwheel.pypa.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
- uses: actions/setup-python@v5
with:
python-version: 3.8
if: runner.os == 'macOS' && runner.arch == 'ARM64'

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.15.0

- name: Set macOS deployment target
if: startsWith(matrix.platform.target, 'macos')
run: echo "MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | cut -d '.' -f 1-2)" >> $GITHUB_ENV

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
Expand Down

0 comments on commit a671e07

Please sign in to comment.