From ee7e6228fd7d4258004db3fa7500eaf4e4251d34 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sat, 8 Feb 2025 15:26:53 +0800 Subject: [PATCH] Fix building wheels for linux aarch64. (#1821) --- .github/workflows/build-wheels-aarch64-cuda.yaml | 7 +------ .github/workflows/build-wheels-aarch64.yaml | 10 ++++------ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-wheels-aarch64-cuda.yaml b/.github/workflows/build-wheels-aarch64-cuda.yaml index a221553a..6069679e 100644 --- a/.github/workflows/build-wheels-aarch64-cuda.yaml +++ b/.github/workflows/build-wheels-aarch64-cuda.yaml @@ -20,18 +20,13 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04] + os: [ubuntu-22.04-arm] python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"] manylinux: [manylinux2014] #, manylinux_2_28] steps: - uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - with: - platforms: all - # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ # for a list of versions - name: Build wheels diff --git a/.github/workflows/build-wheels-aarch64.yaml b/.github/workflows/build-wheels-aarch64.yaml index 1ba8ebd6..18bd871a 100644 --- a/.github/workflows/build-wheels-aarch64.yaml +++ b/.github/workflows/build-wheels-aarch64.yaml @@ -20,18 +20,15 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04] + # see https://github.com/pypa/cibuildwheel/issues/2257 + # we don't use qemu from now on + os: [ubuntu-22.04-arm] python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"] manylinux: [manylinux2014] #, manylinux_2_28] steps: - uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - with: - platforms: all - # see https://cibuildwheel.readthedocs.io/en/stable/changelog/ # for a list of versions - name: Build wheels @@ -50,6 +47,7 @@ jobs: CIBW_SKIP: "cp27-* cp35-* cp36-* *-win32 pp* *-musllinux* *-manylinux_i686" CIBW_BUILD_VERBOSITY: 3 CIBW_ARCHS_LINUX: aarch64 + # https://quay.io/repository/pypa/manylinux2014_aarch64?tab=tags CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/${{ matrix.manylinux }}_aarch64 # From onnxruntime >= 1.17.0, it drops support for CentOS 7.0 and it supports only manylinux_2_28. # manylinux_2_24 is no longer supported