Skip to content

Commit

Permalink
Build Linux AArch64 wheels natively without QEMU (Qiskit#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
  • Loading branch information
jakelishman authored Jan 17, 2025
1 parent 1fc760a commit 3150351
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/wheels-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,14 @@ 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
- uses: docker/setup-qemu-action@v3
with:
platforms: all
- uses: pypa/[email protected]
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: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
Expand Down

0 comments on commit 3150351

Please sign in to comment.