Skip to content

Commit

Permalink
Build aarch64 wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
janaknat committed Oct 16, 2022
1 parent 453b9b0 commit 2704452
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 2704452

Please sign in to comment.