-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from fonttools/linux-aarch64-wheels
build linux aarch64 wheels
- Loading branch information
Showing
1 changed file
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
|
||
|
||
jobs: | ||
build: | ||
build_wheels: | ||
name: Build wheel ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
@@ -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 | ||
|