Skip to content

Commit

Permalink
Fix the release workflow (#740)
Browse files Browse the repository at this point in the history
* Fix the release workflow

* Add build of aarch64 wheels for linux
  • Loading branch information
sdispater authored Aug 17, 2023
1 parent c2cfe19 commit d1a874d
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,26 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
with:
platforms: all

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_LINUX: auto aarch64
CIBW_ARCHS_MACOS: x86_64
CIBW_ARCHS_WINDOWS: AMD64
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
Expand All @@ -44,6 +60,16 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Set up rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}

- name: Build wheels
uses: pypa/[email protected]
env:
Expand All @@ -55,8 +81,8 @@ jobs:

- name: Fix wheel tags
run: |
pip install wheel==0.40
wheel tags --platform-tag macosx_12_0_arm64 dist/*-macosx*.whl --remove
python3 -m pip install wheel
python3 -m wheel tags --platform-tag macosx_12_0_arm64 dist/*-macosx*.whl --remove
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit d1a874d

Please sign in to comment.