From 630b4310e5ac5c4c5a219d1e4366ff66ca1805ca Mon Sep 17 00:00:00 2001 From: Goksel Kabadayi Date: Wed, 2 Aug 2023 01:40:06 +0300 Subject: [PATCH 1/2] Build Linux aarch64 wheel --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe06b9c86..a7f77260b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -180,6 +180,36 @@ jobs: name: dist path: target/wheels/* + build-manylinux-aarch64: + needs: [generate-license] + name: Manylinux arm64 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: rm LICENSE.txt + - name: Download LICENSE.txt + uses: actions/download-artifact@v3 + with: + name: python-wheel-license + path: . + - run: cat LICENSE.txt + - name: Build wheels + uses: PyO3/maturin-action@v1 + env: + RUST_BACKTRACE: 1 + with: + rust-toolchain: nightly + target: aarch64 + # Use manylinux_2_28-cross because the manylinux2014-cross has GCC 4.8.5, which causes the build to fail + manylinux: 2_28 + rustup-components: rust-std rustfmt # Keep them in one line due to https://github.com/PyO3/maturin-action/issues/153 + args: --release --manylinux 2_28 --features protoc + - name: Archive wheels + uses: actions/upload-artifact@v3 + with: + name: dist + path: target/wheels/* + build-sdist: needs: [generate-license] name: Source distribution From 65a929db3aad356c4624e63c311e494dfeb9bcba Mon Sep 17 00:00:00 2001 From: Goksel Kabadayi Date: Thu, 3 Aug 2023 01:28:05 +0300 Subject: [PATCH 2/2] Remove unnecessary platform tag --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a7f77260b..e72c4805a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -203,7 +203,7 @@ jobs: # Use manylinux_2_28-cross because the manylinux2014-cross has GCC 4.8.5, which causes the build to fail manylinux: 2_28 rustup-components: rust-std rustfmt # Keep them in one line due to https://github.com/PyO3/maturin-action/issues/153 - args: --release --manylinux 2_28 --features protoc + args: --release --features protoc - name: Archive wheels uses: actions/upload-artifact@v3 with: