1
- on : push
1
+ on :
2
+ push :
3
+ pull_request :
4
+ types : [ opened, synchronize, reopened ]
2
5
3
6
jobs :
4
7
sdist :
@@ -156,25 +159,37 @@ jobs:
156
159
# # 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)
157
160
- spec : cp39-macosx_arm64
158
161
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' }}
160
166
run_wrapper : arch -arm64 bash --noprofile --norc -eo pipefail {0}
161
167
sdkroot : macosx11.3
162
168
163
169
- spec : cp310-macosx_arm64
164
170
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' }}
166
175
run_wrapper : arch -arm64 bash --noprofile --norc -eo pipefail {0}
167
176
sdkroot : macosx11.3
168
177
169
178
- spec : cp311-macosx_arm64
170
179
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' }}
172
184
run_wrapper : arch -arm64 bash --noprofile --norc -eo pipefail {0}
173
185
sdkroot : macosx11.3
174
186
175
187
- spec : cp312-macosx_arm64
176
188
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' }}
178
193
run_wrapper : arch -arm64 bash --noprofile --norc -eo pipefail {0}
179
194
sdkroot : macosx11.3
180
195
@@ -183,11 +198,13 @@ jobs:
183
198
- name : clone repo
184
199
# need to use v2 until we can upgrade the runners on our private Apple Silicon build infra to one that supports node20
185
200
uses : actions/checkout@v2
201
+ if : ${{ matrix.maybe_skip != 'skip' }}
186
202
187
203
- name : build wheel prereqs
188
204
run : |
189
205
/usr/bin/pip3 install --user --upgrade "${{ matrix.cibw_version || 'cibuildwheel' }}"
190
206
brew uninstall --ignore-dependencies libffi || true
207
+ if : ${{ matrix.maybe_skip != 'skip' }}
191
208
192
209
- name : build/test wheels
193
210
env :
@@ -207,13 +224,15 @@ jobs:
207
224
fi
208
225
209
226
/usr/bin/python3 -m cibuildwheel --output-dir dist
227
+ if : ${{ matrix.maybe_skip != 'skip' }}
210
228
211
229
- name : upload artifacts
212
230
# need to use v2 until we can upgrade the runners on our private Apple Silicon build infra to one that supports node20
213
231
uses : actions/upload-artifact@v2
214
232
with :
215
233
path : dist
216
234
if-no-files-found : error
235
+ if : ${{ matrix.maybe_skip != 'skip' }}
217
236
218
237
windows :
219
238
runs-on : windows-2019
0 commit comments