Skip to content

Commit

Permalink
build: add aarch64 wheel (#180)
Browse files Browse the repository at this point in the history
Signed-off-by: odidev <odidev@puresoftware.com>
  • Loading branch information
odidev authored Jul 19, 2021
1 parent c76dc78 commit d211c5c
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/upload-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,35 @@ jobs:
with:
path: wheelhouse/*.whl

build_aarch64_wheels:
name: Build wheels manylinux_aarch64
runs-on: ubuntu-latest
strategy:
matrix:
python: [36, 37, 38, 39]
include:
- os: ubuntu-latest
arch: aarch64
platform_id: manylinux_aarch64
steps:
- uses: actions/checkout@v1

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Build wheels
uses: joerick/cibuildwheel@v1.9.0
env:
CIBW_ARCHS_LINUX: ${{matrix.arch}}
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
# Manually force a version
CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
- uses: actions/upload-artifact@v2
with:
path: wheelhouse/*.whl

upload_all:
needs: [build_wheels, make_sdist]
needs: [build_wheels, build_aarch64_wheels, make_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
Expand Down

0 comments on commit d211c5c

Please sign in to comment.