From d211c5c6257722aefafa81499a3171f1bf42a6a7 Mon Sep 17 00:00:00 2001 From: odidev Date: Mon, 19 Jul 2021 15:03:30 +0530 Subject: [PATCH] build: add aarch64 wheel (#180) Signed-off-by: odidev --- .github/workflows/upload-to-pypi.yml | 29 +++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upload-to-pypi.yml b/.github/workflows/upload-to-pypi.yml index 25842417..7b3ed12d 100644 --- a/.github/workflows/upload-to-pypi.yml +++ b/.github/workflows/upload-to-pypi.yml @@ -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