From bfea8c7db2b6ddae22983667f23183748941f64b 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 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 82b097930201..4934be7c8ca0 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -199,8 +199,10 @@ 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: @@ -209,6 +211,10 @@ jobs: {"os": "macos-latest", "python": "cp36-* cp37-* cp38-*"}, {"os": "windows-latest", "python": "cp36-* cp37-* cp38-*"}, ] + arch: [auto] + include: + - os_python: {"os": "ubuntu-latest", "python": "cp36-* cp37-* cp38-*"} + 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: