Skip to content

Commit

Permalink
Merge pull request #22 from fonttools/linux-aarch64-wheels
Browse files Browse the repository at this point in the history
build linux aarch64 wheels
  • Loading branch information
anthrotype authored Sep 8, 2023
2 parents 061474d + c475404 commit d0ba0fa
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:


jobs:
build:
build_wheels:
name: Build wheel ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -41,11 +41,39 @@ jobs:
name: wheels-${{ matrix.os }}
path: dist/*.whl

build_aarch64_wheels:
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]
arch: [aarch64]
env:
# Skip building aarch64 wheels for musllinux until someone ask...
CIBW_SKIP: "*-musllinux*"
CIBW_BUILD: cp${{ matrix.python }}-*
CIBW_ARCHS: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: docker/[email protected]
with:
platforms: all
- name: Install dependencies
run: pip install cibuildwheel
- name: Build and Test Wheels
run: python -m cibuildwheel --output-dir dist
- uses: actions/upload-artifact@v2
with:
name: wheels-${{ matrix.python }}-linux-${{ matrix.arch }}
path: dist/*.whl

deploy:
# only run if the commit is tagged...
if: startsWith(github.ref, 'refs/tags/v')
# ... and all build jobs completed successfully
needs: [build]
needs: [build_wheels, build_aarch64_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit d0ba0fa

Please sign in to comment.