1- on : push
1+ on :
2+ push :
3+ pull_request :
4+ types : [ opened, synchronize, reopened ]
25
36jobs :
47 sdist :
@@ -156,25 +159,37 @@ jobs:
156159# # FIXME: ? cp38-macosx_arm64 requires special handling and fails some test_zdist tests under cibw 2.1.2, skip it (so Apple's XCode python3 won't have a wheel)
157160 - spec : cp39-macosx_arm64
158161 deployment_target : ' 11.0'
159- runs_on : [self-hosted, macOS]
162+ runs_on :
163+ - ${{ vars.run_macos_arm64_jobs == 'true' && 'self-hosted' || 'ubuntu-latest' }}
164+ - ${{ vars.run_macos_arm64_jobs == 'true' && 'macOS' || 'ubuntu-latest' }}
165+ maybe_skip : ${{ vars.run_macos_arm64_jobs != 'true' && 'skip' }}
160166 run_wrapper : arch -arm64 bash --noprofile --norc -eo pipefail {0}
161167 sdkroot : macosx11.3
162168
163169 - spec : cp310-macosx_arm64
164170 deployment_target : ' 11.0'
165- runs_on : [self-hosted, macOS]
171+ runs_on :
172+ - ${{ vars.run_macos_arm64_jobs == 'true' && 'self-hosted' || 'ubuntu-latest' }}
173+ - ${{ vars.run_macos_arm64_jobs == 'true' && 'macOS' || 'ubuntu-latest' }}
174+ maybe_skip : ${{ vars.run_macos_arm64_jobs != 'true' && 'skip' }}
166175 run_wrapper : arch -arm64 bash --noprofile --norc -eo pipefail {0}
167176 sdkroot : macosx11.3
168177
169178 - spec : cp311-macosx_arm64
170179 deployment_target : ' 11.0'
171- runs_on : [self-hosted, macOS]
180+ runs_on :
181+ - ${{ vars.run_macos_arm64_jobs == 'true' && 'self-hosted' || 'ubuntu-latest' }}
182+ - ${{ vars.run_macos_arm64_jobs == 'true' && 'macOS' || 'ubuntu-latest' }}
183+ maybe_skip : ${{ vars.run_macos_arm64_jobs != 'true' && 'skip' }}
172184 run_wrapper : arch -arm64 bash --noprofile --norc -eo pipefail {0}
173185 sdkroot : macosx11.3
174186
175187 - spec : cp312-macosx_arm64
176188 deployment_target : ' 11.0'
177- runs_on : [self-hosted, macOS]
189+ runs_on :
190+ - ${{ vars.run_macos_arm64_jobs == 'true' && 'self-hosted' || 'ubuntu-latest' }}
191+ - ${{ vars.run_macos_arm64_jobs == 'true' && 'macOS' || 'ubuntu-latest' }}
192+ maybe_skip : ${{ vars.run_macos_arm64_jobs != 'true' && 'skip' }}
178193 run_wrapper : arch -arm64 bash --noprofile --norc -eo pipefail {0}
179194 sdkroot : macosx11.3
180195
@@ -183,11 +198,13 @@ jobs:
183198 - name : clone repo
184199 # need to use v2 until we can upgrade the runners on our private Apple Silicon build infra to one that supports node20
185200 uses : actions/checkout@v2
201+ if : ${{ matrix.maybe_skip != 'skip' }}
186202
187203 - name : build wheel prereqs
188204 run : |
189205 /usr/bin/pip3 install --user --upgrade "${{ matrix.cibw_version || 'cibuildwheel' }}"
190206 brew uninstall --ignore-dependencies libffi || true
207+ if : ${{ matrix.maybe_skip != 'skip' }}
191208
192209 - name : build/test wheels
193210 env :
@@ -207,13 +224,15 @@ jobs:
207224 fi
208225
209226 /usr/bin/python3 -m cibuildwheel --output-dir dist
227+ if : ${{ matrix.maybe_skip != 'skip' }}
210228
211229 - name : upload artifacts
212230 # need to use v2 until we can upgrade the runners on our private Apple Silicon build infra to one that supports node20
213231 uses : actions/upload-artifact@v2
214232 with :
215233 path : dist
216234 if-no-files-found : error
235+ if : ${{ matrix.maybe_skip != 'skip' }}
217236
218237 windows :
219238 runs-on : windows-2019
0 commit comments