-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(wheels): refine process for building Linux aarch64 wheels
Create a separate job just for building aarch64 wheels. Another attempt to get the wheels cross-compiled on the apple silicon runners. Signed-off-by: Zach Lewis <[email protected]>
- Loading branch information
Showing
1 changed file
with
63 additions
and
9 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 |
---|---|---|
|
@@ -219,19 +219,19 @@ jobs: | |
# ------------------------------------------------------------------- | ||
- build: CPython 3.8 ARM 64 bits | ||
python: cp38-macosx_arm64 | ||
arch: auto | ||
arch: arm64 | ||
- build: CPython 3.9 ARM 64 bits | ||
python: cp39-macosx_arm64 | ||
arch: auto | ||
arch: arm64 | ||
- build: CPython 3.10 ARM 64 bits | ||
python: cp310-macosx_arm64 | ||
arch: auto | ||
arch: arm64 | ||
- build: CPython 3.11 ARM 64 bits | ||
python: cp311-macosx_arm64 | ||
arch: auto | ||
arch: arm64 | ||
- build: CPython 3.12 ARM 64 bits | ||
python: cp312-macosx_arm64 | ||
arch: auto | ||
arch: arm64 | ||
# ------------------------------------------------------------------- | ||
# CPython ARM 64 bits manylinux2014 | ||
# ------------------------------------------------------------------- | ||
|
@@ -268,16 +268,70 @@ jobs: | |
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: ${{ matrix.python }} | ||
#CIBW_ARCHS: ${{ matrix.arch }} | ||
#CIBW_ARCHS_MACOS: ${{ matrix.arch }} | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.python }} | ||
path: ./wheelhouse/*.whl | ||
|
||
|
||
|
||
macos_arm64_cross: | ||
name: Build Linux wheels on macOS ARM64 | ||
runs-on: macos-14 | ||
# Don't run on OIIO forks | ||
if: | | ||
github.event_name != 'schedule' || | ||
github.repository == 'AcademySoftwareFoundation/OpenImageIO' | ||
strategy: | ||
matrix: | ||
include: | ||
# ------------------------------------------------------------------- | ||
# CPython ARM 64 bits manylinux2014 | ||
# ------------------------------------------------------------------- | ||
- build: CPython 3.8 ARM 64 bits manylinux2014 | ||
manylinux: manylinux2014 | ||
python: cp38-manylinux_aarch64 | ||
arch: aarch64 | ||
- build: CPython 3.9 ARM 64 bits manylinux2014 | ||
manylinux: manylinux2014 | ||
python: cp39-manylinux_aarch64 | ||
arch: aarch64 | ||
- build: CPython 3.10 ARM 64 bits manylinux2014 | ||
manylinux: manylinux2014 | ||
python: cp310-manylinux_aarch64 | ||
arch: aarch64 | ||
- build: CPython 3.11 ARM 64 bits manylinux2014 | ||
manylinux: manylinux2014 | ||
python: cp311-manylinux_aarch64 | ||
arch: aarch64 | ||
- build: CPython 3.12 ARM 64 bits manylinux2014 | ||
manylinux: manylinux2014 | ||
python: cp312-manylinux_aarch64 | ||
arch: aarch64 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BUILD: ${{ matrix.python }} | ||
CIBW_PLATFORM: linux | ||
CIBW_ARCHS_LINUX: ${{ matrix.arch }} | ||
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux }} | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.python }} | ||
path: ./wheelhouse/*.whl | ||
|
||
# --------------------------------------------------------------------------- | ||
# Windows Wheels | ||
# --------------------------------------------------------------------------- | ||
|
@@ -333,7 +387,7 @@ jobs: | |
|
||
|
||
upload_pypi: | ||
needs: [sdist, linux, macos, macos_arm64, windows] | ||
needs: [sdist, linux, macos, macos_arm64,macos_arm64_cross, windows] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
|