From c0c87e5ab3fd7299700ef3dc09e2b6aaba065b51 Mon Sep 17 00:00:00 2001 From: odidev Date: Tue, 18 May 2021 11:12:55 +0000 Subject: [PATCH] Add linux aarch64 wheel build support Signed-off-by: odidev --- .github/workflows/build_wheels.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 82b097930201..e09b4f68e9ea 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -199,16 +199,22 @@ jobs: run: gsutil cp -r -a public-read source/* ${{ env.GCP_PATH }} build_wheels: - name: Build python wheels on ${{ matrix.os_python.os }} + name: Build python wheels on ${{matrix.arch}} for ${{ matrix.os_python.os }} needs: build_source + env: + CIBW_ARCHS_LINUX: ${{matrix.arch}} runs-on: ${{ matrix.os_python.os }} strategy: matrix: os_python: [ - {"os": "ubuntu-latest", "python": "cp36-* cp37-* cp38-*"}, - {"os": "macos-latest", "python": "cp36-* cp37-* cp38-*"}, - {"os": "windows-latest", "python": "cp36-* cp37-* cp38-*"}, + {"os": "ubuntu-latest", "python": "cp36-* cp37-* cp38-* cp39-*"}, + {"os": "macos-latest", "python": "cp36-* cp37-* cp38-* cp39-*"}, + {"os": "windows-latest", "python": "cp36-* cp37-* cp38-* cp39-*"}, ] + arch: [auto] + include: + - os_python: {"os": "ubuntu-latest", "python": "cp36-* cp37-* cp38-* cp39-*"} + arch: aarch64 steps: - name: Download python source distribution from artifacts uses: actions/download-artifact@v2 @@ -225,8 +231,11 @@ jobs: uses: actions/setup-python@v2 with: python-version: 3.7 + - uses: docker/setup-qemu-action@v1 + if: ${{matrix.arch == 'aarch64'}} + name: Set up QEMU - name: Install cibuildwheel - run: pip install cibuildwheel==1.4.2 + run: pip install cibuildwheel==1.11.0 - name: Build wheel working-directory: apache-beam-source env: