Skip to content

Commit

Permalink
[ci] try use Github-hosted linux arm64 runners instead of docker+qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Jan 24, 2025
1 parent d822fef commit cdf5a6e
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
arch: universal2
- os: windows-latest
arch: auto32
- os: ubuntu-24.04-arm
arch: aarch64
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -78,43 +80,12 @@ jobs:
name: wheels-${{ matrix.os }}-${{ matrix.arch }}
path: wheelhouse/*.whl

build_arch_wheels:
name: py${{ matrix.python }} on ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
matrix:
# aarch64 uses qemu so it's slow, build each py version in parallel jobs
python: [38, 39, 310, 311, 312, 313]
arch: [aarch64]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: docker/setup-qemu-action@v3.3.0
with:
# temporarily pin to qemu@v8 to workaround non-determininstic gcc segfaults
# https://github.com/docker/setup-qemu-action/issues/188
image: tonistiigi/binfmt:qemu-v8.1.5
platforms: all
- name: Install dependencies
run: pip install cibuildwheel
- name: Build Wheels
run: python -m cibuildwheel --output-dir wheelhouse .
env:
CIBW_BUILD: cp${{ matrix.python }}-*
CIBW_ARCHS: ${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: wheels-py${{ matrix.python }}-linux-${{ matrix.arch }}
path: wheelhouse/*.whl

deploy:
name: Upload to PyPI on tagged commit
runs-on: ubuntu-latest
needs:
- build_pure
- build_wheels
- build_arch_wheels
# only run if the commit is tagged...
if: startsWith(github.ref, 'refs/tags/')
steps:
Expand Down

0 comments on commit cdf5a6e

Please sign in to comment.