@@ -58,15 +58,16 @@ jobs:
58
58
59
59
steps :
60
60
61
- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
61
+ - name : Checkout repo
62
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
62
63
63
64
- name : Build SDist
64
65
run : pipx run build --sdist
65
66
66
67
- name : Check metadata
67
68
run : pipx run twine check dist/*
68
69
69
- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
70
+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
70
71
with :
71
72
name : cibw-sdist
72
73
path : dist/*.tar.gz
@@ -140,24 +141,33 @@ jobs:
140
141
arch : x86_64
141
142
142
143
steps :
143
- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
144
+ - name : Checkout repo
145
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
144
146
145
- - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
146
- name : Install Python
147
+ - name : Install Python
148
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
147
149
with :
148
150
python-version : ' 3.9'
149
151
150
152
- name : Build wheels
153
+ # Note: the version of cibuildwheel should be kept in sync with src/python/stubs/CMakeLists.txt
151
154
uses : pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1
152
155
env :
156
+ # pass GITHUB_ACTIONS through to the build container so that custom
157
+ # processes can tell they are running in CI.
158
+ CIBW_ENVIRONMENT_PASS_LINUX : GITHUB_ACTIONS
153
159
CIBW_BUILD : ${{ matrix.python }}
154
160
CIBW_ARCHS : ${{ matrix.arch }}
155
161
CIBW_MANYLINUX_X86_64_IMAGE : ${{ matrix.manylinux }}
156
162
157
- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
163
+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
158
164
with :
159
165
name : cibw-wheels-${{ matrix.python }}-${{ matrix.manylinux }}
160
- path : ./wheelhouse/*.whl
166
+ path : |
167
+ ./wheelhouse/*.whl
168
+ ./wheelhouse/OpenImageIO/__init__.pyi
169
+ # if stub validation fails we want to upload the stubs for users to review
170
+ if : success() || failure()
161
171
162
172
# ---------------------------------------------------------------------------
163
173
# Linux ARM Wheels
@@ -201,10 +211,11 @@ jobs:
201
211
arch : aarch64
202
212
203
213
steps :
204
- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
214
+ - name : Checkout repo
215
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
205
216
206
- - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
207
- name : Install Python
217
+ - name : Install Python
218
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
208
219
with :
209
220
python-version : ' 3.9'
210
221
@@ -215,10 +226,14 @@ jobs:
215
226
CIBW_ARCHS : ${{ matrix.arch }}
216
227
CIBW_MANYLINUX_AARCH64_IMAGE : ${{ matrix.manylinux }}
217
228
218
- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
229
+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
219
230
with :
220
231
name : cibw-wheels-${{ matrix.python }}-${{ matrix.manylinux }}
221
- path : ./wheelhouse/*.whl
232
+ path : |
233
+ ./wheelhouse/*.whl
234
+ ./wheelhouse/OpenImageIO/__init__.pyi
235
+ # if stub validation fails we want to upload the stubs for users to review
236
+ if : success() || failure()
222
237
223
238
# ---------------------------------------------------------------------------
224
239
# macOS Wheels
@@ -256,10 +271,11 @@ jobs:
256
271
arch : x86_64
257
272
258
273
steps :
259
- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
274
+ - name : Checkout repo
275
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
260
276
261
- - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
262
- name : Install Python
277
+ - name : Install Python
278
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
263
279
with :
264
280
python-version : ' 3.9'
265
281
@@ -273,7 +289,7 @@ jobs:
273
289
# not include GPL-licensed dynamic libraries.
274
290
USE_Libheif : ' OFF'
275
291
276
- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
292
+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
277
293
with :
278
294
name : cibw-wheels-${{ matrix.python }}
279
295
path : ./wheelhouse/*.whl
@@ -314,10 +330,11 @@ jobs:
314
330
arch : arm64
315
331
316
332
steps :
317
- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
333
+ - name : Checkout repo
334
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
318
335
319
- - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
320
- name : Install Python
336
+ - name : Install Python
337
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
321
338
# https://cibuildwheel.pypa.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
322
339
with :
323
340
python-version : ' 3.8'
@@ -330,7 +347,7 @@ jobs:
330
347
CIBW_ARCHS : ${{ matrix.arch }}
331
348
CMAKE_GENERATOR : " Unix Makefiles"
332
349
333
- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
350
+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
334
351
with :
335
352
name : cibw-wheels-${{ matrix.python }}
336
353
path : ./wheelhouse/*.whl
@@ -371,10 +388,11 @@ jobs:
371
388
arch : AMD64
372
389
373
390
steps :
374
- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
391
+ - name : Checkout repo
392
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
375
393
376
- - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
377
- name : Install Python
394
+ - name : Install Python
395
+ uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
378
396
with :
379
397
python-version : ' 3.9'
380
398
@@ -385,7 +403,7 @@ jobs:
385
403
CIBW_ARCHS : ${{ matrix.arch }}
386
404
CMAKE_POLICY_VERSION_MINIMUM : 3.5
387
405
388
- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
406
+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
389
407
with :
390
408
name : cibw-wheels-${{ matrix.python }}
391
409
path : ./wheelhouse/*.whl
0 commit comments