mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-02 06:51:14 +00:00
Build a separate ARM wheel for macOS (#3268)
## Summary See: https://github.com/astral-sh/ruff/pull/11149
This commit is contained in:
parent
fab8d858b6
commit
71ffb2eabc
1 changed files with 8 additions and 7 deletions
15
.github/workflows/build-binaries.yml
vendored
15
.github/workflows/build-binaries.yml
vendored
|
@ -102,9 +102,9 @@ jobs:
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
*.sha256
|
*.sha256
|
||||||
|
|
||||||
macos-universal:
|
macos-aarch64:
|
||||||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
|
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-build') }}
|
||||||
runs-on: macos-12
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -112,16 +112,17 @@ jobs:
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env.PYTHON_VERSION }}
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
architecture: x64
|
architecture: arm64
|
||||||
- name: "Prep README.md"
|
- name: "Prep README.md"
|
||||||
run: python scripts/transform_readme.py --target pypi
|
run: python scripts/transform_readme.py --target pypi
|
||||||
- name: "Build wheels - universal2"
|
- name: "Build wheels - aarch64"
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
with:
|
with:
|
||||||
args: --release --locked --target universal2-apple-darwin --out dist --features self-update
|
target: aarch64
|
||||||
- name: "Test wheel - universal2"
|
args: --release --locked --out dist --features self-update
|
||||||
|
- name: "Test wheel - aarch64"
|
||||||
run: |
|
run: |
|
||||||
pip install dist/${{ env.PACKAGE_NAME }}-*universal2.whl --force-reinstall
|
pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall
|
||||||
${{ env.MODULE_NAME }} --help
|
${{ env.MODULE_NAME }} --help
|
||||||
python -m ${{ env.MODULE_NAME }} --help
|
python -m ${{ env.MODULE_NAME }} --help
|
||||||
- name: "Upload wheels"
|
- name: "Upload wheels"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue