diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15edc59b..52ab1c31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/cibuildwheel@v2.12.1 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" @@ -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/cibuildwheel@v2.12.1 env: @@ -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: