-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build wheels for Linux aarch64 (#51)
build wheels for Linux aarch64 Fixes #48
- Loading branch information
1 parent
39dd41c
commit ec787d4
Showing
2 changed files
with
43 additions
and
6 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 |
---|---|---|
|
@@ -20,7 +20,7 @@ env: | |
CIBW_ENVIRONMENT: BUILD_SKIA_FROM_SOURCE=0 SKIA_LIBRARY_DIR=build/download | ||
|
||
jobs: | ||
build: | ||
build_wheels: | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
|
@@ -65,11 +65,45 @@ jobs: | |
name: skia_pathops-${{ matrix.os }}-${{ matrix.arch }} | ||
path: wheelhouse/*.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: [37, 38, 39, 310] | ||
arch: [aarch64] | ||
env: | ||
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: Download pre-compiled libskia | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: | | ||
if [ "$BUILD_SKIA_FROM_SOURCE" == "0" ]; then | ||
pip install githubrelease | ||
python ci/download_libskia.py -d "${SKIA_LIBRARY_DIR}" --cpu-arch "arm64" | ||
fi | ||
- name: Install dependencies | ||
run: pip install cibuildwheel | ||
- name: Build and Test Wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: skia_pathops-${{ matrix.python }}-linux-${{ matrix.arch }} | ||
path: wheelhouse/*.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 | ||
|
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