Skip to content

Commit 23eae01

Browse files
committed
ci: Use ARM-native runners for linux ARM Python wheels
Signed-off-by: Zach Lewis <zachcanbereached@gmail.com>
1 parent c5c85b0 commit 23eae01

1 file changed

Lines changed: 35 additions & 6 deletions

File tree

.github/workflows/wheel_workflow.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,41 @@ jobs:
132132
manylinux: manylinux2014
133133
python: cp313-manylinux_x86_64
134134
arch: x86_64
135+
136+
steps:
137+
- uses: actions/checkout@v4
138+
139+
- uses: actions/setup-python@v5
140+
name: Install Python
141+
with:
142+
python-version: '3.9'
143+
144+
- name: Build wheels
145+
uses: pypa/cibuildwheel@v2.22.0
146+
env:
147+
CIBW_BUILD: ${{ matrix.python }}
148+
CIBW_ARCHS: ${{ matrix.arch }}
149+
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }}
150+
151+
- uses: actions/upload-artifact@v4
152+
with:
153+
name: cibw-wheels-${{ matrix.python }}-${{ matrix.manylinux }}
154+
path: ./wheelhouse/*.whl
155+
156+
# ---------------------------------------------------------------------------
157+
# Linux ARM Wheels
158+
# ---------------------------------------------------------------------------
159+
160+
linux-arm:
161+
name: Build wheels on Linux ARM
162+
runs-on: ubuntu-24.04-arm
163+
# Don't run on OCIO forks
164+
if: |
165+
github.event_name != 'schedule' ||
166+
github.repository == 'AcademySoftwareFoundation/OpenColorIO'
167+
strategy:
168+
matrix:
169+
include:
135170
# -------------------------------------------------------------------
136171
# CPython ARM 64 bits manylinux2014
137172
# -------------------------------------------------------------------
@@ -168,17 +203,11 @@ jobs:
168203
with:
169204
python-version: '3.9'
170205

171-
- name: Set up QEMU
172-
uses: docker/setup-qemu-action@v3
173-
with:
174-
platforms: all
175-
176206
- name: Build wheels
177207
uses: pypa/cibuildwheel@v2.22.0
178208
env:
179209
CIBW_BUILD: ${{ matrix.python }}
180210
CIBW_ARCHS: ${{ matrix.arch }}
181-
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux }}
182211
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.manylinux }}
183212

184213
- uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)