From f3fd6eba09d8504523757682267cde5f138496d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Eustace?= Date: Thu, 17 Aug 2023 23:43:27 +0200 Subject: [PATCH 1/2] Fix the release workflow --- .github/workflows/release.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15edc59b..430030fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,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: @@ -44,6 +54,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 +75,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: From d4599aa11dd87b332e866b394d46fb42790ab310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Eustace?= Date: Fri, 18 Aug 2023 00:08:57 +0200 Subject: [PATCH 2/2] Add build of aarch64 wheels for linux --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 430030fd..52ab1c31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,10 +28,16 @@ jobs: 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"