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 21, 2022
1 parent 453b9b0 commit 410c137
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,18 @@ jobs:
- os: ubuntu-latest
architecture: 'x64'
cibw_skip: '*-manylinux_i686'
- os: ubuntu-latest
architecture: 'aarch64'
cibw_skip: 'pp39-manylinux_aarch64'
cibw_archs: aarch64
runs-on: ${{ matrix.os }}
steps:
- name: Set up QEMU for aarch64 wheels
if: ${{ matrix.cibw_archs == 'aarch64' }}
uses: docker/setup-qemu-action@v1
with:
platforms: arm64

- name: Checkout pyjnius
uses: actions/checkout@v3

Expand All @@ -48,8 +58,19 @@ jobs:
architecture: ${{ matrix.architecture }}

- name: Build wheels
if: ${{ matrix.cibw_archs != 'aarch64' }}
env:
CIBW_SKIP: '*musllinux* ${{ matrix.cibw_skip }}'
run: python -m cibuildwheel --output-dir dist

- name: Build and test aarch64 wheels
if: ${{ matrix.cibw_archs == 'aarch64' }}
env:
CIBW_SKIP: '*musllinux* ${{ matrix.cibw_skip }}'
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
Expand Down

0 comments on commit 410c137

Please sign in to comment.