Skip to content

Commit

Permalink
Build Linux AArch64 wheels natively without QEMU (#13682)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jakelishman authored and mergify[bot] committed Jan 17, 2025
1 parent dd4ceef commit 782927a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/wheels-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,20 +209,24 @@ jobs:
wheels-linux-aarch64:
name: "Wheels / Linux AArch64"
if: (inputs.wheels-linux-aarch64 == 'default' && inputs.default-action || inputs.wheels-linux-aarch64) == 'build'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- uses: dtolnay/rust-toolchain@stable
<<<<<<< HEAD
- uses: docker/setup-qemu-action@v3
with:
platforms: all
- uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_ARCHS_LINUX: aarch64
CIBW_TEST_COMMAND: cp -r {project}/test . && QISKIT_PARALLEL=FALSE stestr --test-path test/python run --abbreviate -n test.python.compiler.test_transpiler
=======
- uses: pypa/cibuildwheel@v2.22.0
>>>>>>> 3150351f (Build Linux AArch64 wheels natively without QEMU (#13682))
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
Expand Down

0 comments on commit 782927a

Please sign in to comment.