Skip to content

Commit aff7bd3

Browse files
committed
ci: Build aarch64 wheels on ARM Ubuntu 24.04
Previously we were building them on x86-64 Ubuntu 24.04 runners in QEMU. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
1 parent 460f914 commit aff7bd3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/build_wheels.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ jobs:
4545
- id: manylinux_i686
4646
run: echo "wheel_types=manylinux_i686" >> $GITHUB_OUTPUT
4747
- id: manylinux_aarch64
48-
if: github.event_name == 'release' && github.event.action == 'published'
4948
run: echo "wheel_types=manylinux_aarch64" >> $GITHUB_OUTPUT
5049
outputs:
5150
wheel_types: ${{ toJSON(steps.*.outputs.wheel_types) }}
5251

5352
build_linux_wheels:
5453
needs: [build_sdist, choose_linux_wheel_types]
5554
name: ${{ matrix.wheel_type }}${{ matrix.manylinux2010_hack }} wheels
56-
runs-on: ubuntu-latest
55+
runs-on: ${{ matrix.runner }}
5756
strategy:
5857
fail-fast: false
5958
matrix:
6059
wheel_type: ${{ fromJSON(needs.choose_linux_wheel_types.outputs.wheel_types) }}
60+
runner: ["ubuntu-latest"]
6161
manylinux2010_hack: [""]
6262
include:
6363
- wheel_type: manylinux_x86_64
@@ -95,9 +95,6 @@ jobs:
9595
with:
9696
name: tests
9797
path: tests
98-
- uses: docker/setup-qemu-action@v3
99-
if: runner.os == 'Linux'
100-
name: Set up QEMU
10198
- name: Extract sdist
10299
run: |
103100
tar zxvf dist/*.tar.gz --strip-components=1
@@ -108,11 +105,10 @@ jobs:
108105
uses: pypa/cibuildwheel@v2.22.0
109106
env:
110107
CIBW_BUILD: "cp3{7..13}-${{ matrix.wheel_type }}"
111-
CIBW_ARCHS_LINUX: auto aarch64
108+
CIBW_ARCHS_LINUX: auto
112109
CIBW_PRERELEASE_PYTHONS: True
113110
CIBW_TEST_EXTRAS: test
114111
CIBW_TEST_COMMAND: python -m pytest {package}/tests
115-
CIBW_TEST_SKIP: "*aarch64*"
116112
- uses: actions/upload-artifact@v4
117113
with:
118114
name: ${{ matrix.wheel_type }}${{ matrix.manylinux2010_hack }}-wheels

0 commit comments

Comments
 (0)