Skip to content

Commit 782927a

Browse files
jakelishmanmergify[bot]
authored andcommitted
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 (cherry picked from commit 3150351) # Conflicts: # .github/workflows/wheels-build.yml
1 parent dd4ceef commit 782927a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/wheels-build.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -209,20 +209,24 @@ jobs:
209209
wheels-linux-aarch64:
210210
name: "Wheels / Linux AArch64"
211211
if: (inputs.wheels-linux-aarch64 == 'default' && inputs.default-action || inputs.wheels-linux-aarch64) == 'build'
212-
runs-on: ubuntu-latest
212+
runs-on: ubuntu-24.04-arm
213213
steps:
214214
- uses: actions/checkout@v4
215215
- uses: actions/setup-python@v5
216216
with:
217217
python-version: ${{ inputs.python-version }}
218218
- uses: dtolnay/rust-toolchain@stable
219+
<<<<<<< HEAD
219220
- uses: docker/setup-qemu-action@v3
220221
with:
221222
platforms: all
222223
- uses: pypa/cibuildwheel@v2.21.3
223224
env:
224225
CIBW_ARCHS_LINUX: aarch64
225226
CIBW_TEST_COMMAND: cp -r {project}/test . && QISKIT_PARALLEL=FALSE stestr --test-path test/python run --abbreviate -n test.python.compiler.test_transpiler
227+
=======
228+
- uses: pypa/cibuildwheel@v2.22.0
229+
>>>>>>> 3150351f (Build Linux AArch64 wheels natively without QEMU (#13682))
226230
- uses: actions/upload-artifact@v4
227231
with:
228232
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)