Skip to content

Commit

Permalink
Build a separate ARM wheel for macOS (#3268)
Browse files Browse the repository at this point in the history
## Summary

See: astral-sh/ruff#11149
  • Loading branch information
charliermarsh authored Apr 25, 2024
1 parent fab8d85 commit 71ffb2e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,27 @@ jobs:
*.tar.gz
*.sha256
macos-universal:
macos-aarch64:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
runs-on: macos-12
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
architecture: x64
architecture: arm64
- name: "Prep README.md"
run: python scripts/transform_readme.py --target pypi
- name: "Build wheels - universal2"
- name: "Build wheels - aarch64"
uses: PyO3/maturin-action@v1
with:
args: --release --locked --target universal2-apple-darwin --out dist --features self-update
- name: "Test wheel - universal2"
target: aarch64
args: --release --locked --out dist --features self-update
- name: "Test wheel - aarch64"
run: |
pip install dist/${{ env.PACKAGE_NAME }}-*universal2.whl --force-reinstall
pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall
${{ env.MODULE_NAME }} --help
python -m ${{ env.MODULE_NAME }} --help
- name: "Upload wheels"
Expand Down

0 comments on commit 71ffb2e

Please sign in to comment.