@@ -58,15 +58,16 @@ jobs:
5858
5959 steps :
6060
61- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
61+ - name : Checkout repo
62+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6263
6364 - name : Build SDist
6465 run : pipx run build --sdist
6566
6667 - name : Check metadata
6768 run : pipx run twine check dist/*
6869
69- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
70+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
7071 with :
7172 name : cibw-sdist
7273 path : dist/*.tar.gz
@@ -140,24 +141,33 @@ jobs:
140141 arch : x86_64
141142
142143 steps :
143- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
144+ - name : Checkout repo
145+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
144146
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
147149 with :
148150 python-version : ' 3.9'
149151
150152 - name : Build wheels
153+ # Note: the version of cibuildwheel should be kept in sync with src/python/stubs/CMakeLists.txt
151154 uses : pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1
152155 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
153159 CIBW_BUILD : ${{ matrix.python }}
154160 CIBW_ARCHS : ${{ matrix.arch }}
155161 CIBW_MANYLINUX_X86_64_IMAGE : ${{ matrix.manylinux }}
156162
157- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
163+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
158164 with :
159165 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()
161171
162172 # ---------------------------------------------------------------------------
163173 # Linux ARM Wheels
@@ -201,10 +211,11 @@ jobs:
201211 arch : aarch64
202212
203213 steps :
204- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
214+ - name : Checkout repo
215+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
205216
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
208219 with :
209220 python-version : ' 3.9'
210221
@@ -215,10 +226,14 @@ jobs:
215226 CIBW_ARCHS : ${{ matrix.arch }}
216227 CIBW_MANYLINUX_AARCH64_IMAGE : ${{ matrix.manylinux }}
217228
218- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
229+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
219230 with :
220231 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()
222237
223238 # ---------------------------------------------------------------------------
224239 # macOS Wheels
@@ -256,10 +271,11 @@ jobs:
256271 arch : x86_64
257272
258273 steps :
259- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
274+ - name : Checkout repo
275+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
260276
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
263279 with :
264280 python-version : ' 3.9'
265281
@@ -273,7 +289,7 @@ jobs:
273289 # not include GPL-licensed dynamic libraries.
274290 USE_Libheif : ' OFF'
275291
276- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
292+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
277293 with :
278294 name : cibw-wheels-${{ matrix.python }}
279295 path : ./wheelhouse/*.whl
@@ -314,10 +330,11 @@ jobs:
314330 arch : arm64
315331
316332 steps :
317- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
333+ - name : Checkout repo
334+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
318335
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
321338 # https://cibuildwheel.pypa.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
322339 with :
323340 python-version : ' 3.8'
@@ -330,7 +347,7 @@ jobs:
330347 CIBW_ARCHS : ${{ matrix.arch }}
331348 CMAKE_GENERATOR : " Unix Makefiles"
332349
333- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
350+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
334351 with :
335352 name : cibw-wheels-${{ matrix.python }}
336353 path : ./wheelhouse/*.whl
@@ -371,10 +388,11 @@ jobs:
371388 arch : AMD64
372389
373390 steps :
374- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
391+ - name : Checkout repo
392+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
375393
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
378396 with :
379397 python-version : ' 3.9'
380398
@@ -385,7 +403,7 @@ jobs:
385403 CIBW_ARCHS : ${{ matrix.arch }}
386404 CMAKE_POLICY_VERSION_MINIMUM : 3.5
387405
388- - uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4 .0
406+ - uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 .0
389407 with :
390408 name : cibw-wheels-${{ matrix.python }}
391409 path : ./wheelhouse/*.whl
0 commit comments