From 2704452b9b2690790249b9c5dfa1ebe455d63fe9 Mon Sep 17 00:00:00 2001 From: Janakarajan Natarajan Date: Fri, 14 Oct 2022 18:29:28 +0000 Subject: [PATCH] Build aarch64 wheels --- .github/workflows/create.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/create.yml b/.github/workflows/create.yml index 087ef456..bd44e492 100644 --- a/.github/workflows/create.yml +++ b/.github/workflows/create.yml @@ -28,6 +28,12 @@ jobs: cibw_skip: '*-manylinux_i686' runs-on: ${{ matrix.os }} steps: + - name: Set up QEMU for aarch64 wheels + if: runner.os == 'Linux' + uses: docker/setup-qemu-action@v1 + with: + platforms: arm64 + - name: Checkout pyjnius uses: actions/checkout@v3 @@ -52,6 +58,16 @@ jobs: CIBW_SKIP: '*musllinux* ${{ matrix.cibw_skip }}' run: python -m cibuildwheel --output-dir dist + - name: Build and test aarch64 wheels + if: runner.os == 'Linux' + env: + CIBW_SKIP: '*musllinux* pp39-manylinux_aarch64' + CIBW_ARCHS: 'aarch64' + CIBW_TEST_REQUIRES: 'pytest' + CIBW_BEFORE_TEST: 'yum install ant -y && cd {project} && ant all' + CIBW_TEST_COMMAND: 'cd {project}/tests/ && CLASSPATH=../build/test-classes:../build/classes python -m pytest -v' + run: python -m cibuildwheel --output-dir dist + - name: upload wheels uses: actions/upload-artifact@v2 with: