Skip to content

Commit 3150351

Browse files
authored
Build Linux AArch64 wheels natively without QEMU (#13682)
* Build Linux AArch64 wheels natively without QEMU GitHub Actions now provides Linux runner images on native arm64 hardware[^1], which means we should be able to build the wheels natively, without requiring QEMU. This potentially paves the way (pending a more complete move of CI to GHA) for Linux on AArch64 to potentially gain Tier 1 platforma support. [^1]: https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/ * Remove restriction on tests We previously restricted the tests to a small subset of the suite because of runtime concerns with QEMU. Since we are now running natively, this removes the restriction, bringing Linux AArch64 in line with what we expect from a Tier 2 platform. * Remove explicit architecture selection
1 parent 1fc760a commit 3150351

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/wheels-build.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,14 @@ jobs:
173173
wheels-linux-aarch64:
174174
name: "Wheels / Linux AArch64"
175175
if: (inputs.wheels-linux-aarch64 == 'default' && inputs.default-action || inputs.wheels-linux-aarch64) == 'build'
176-
runs-on: ubuntu-latest
176+
runs-on: ubuntu-24.04-arm
177177
steps:
178178
- uses: actions/checkout@v4
179179
- uses: actions/setup-python@v5
180180
with:
181181
python-version: ${{ inputs.python-version }}
182182
- uses: dtolnay/rust-toolchain@stable
183-
- uses: docker/setup-qemu-action@v3
184-
with:
185-
platforms: all
186183
- uses: pypa/cibuildwheel@v2.22.0
187-
env:
188-
CIBW_ARCHS_LINUX: aarch64
189-
CIBW_TEST_COMMAND: cp -r {project}/test . && QISKIT_PARALLEL=FALSE stestr --test-path test/python run --abbreviate -n test.python.compiler.test_transpiler
190184
- uses: actions/upload-artifact@v4
191185
with:
192186
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)