[ci] try use Github-hosted linux arm64 runners instead of docker+qemu
this should just work now https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/ Fixes https://github.com/fonttools/fonttools/issues/3753
This commit is contained in:
parent
d822fefa62
commit
cdf5a6e69b
33
.github/workflows/wheels.yml
vendored
33
.github/workflows/wheels.yml
vendored
@ -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:
|
||||
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user