@@ -134,7 +134,7 @@ jobs:
134134 CIBW_MANYLINUX_X86_64_IMAGE : ${{ matrix.manylinux }}
135135 MACOSX_DEPLOYMENT_TARGET : ${{ matrix.macosx_deployment_target }}
136136
137- - uses : actions/upload-artifact@v5
137+ - uses : actions/upload-artifact@v6
138138 with :
139139 name : dist-${{ matrix.name }}
140140 path : ./wheelhouse/*.whl
@@ -186,24 +186,18 @@ jobs:
186186
187187 - name : Build wheels
188188 run : |
189- setlocal EnableDelayedExpansion
190- for %%f in (winbuild\build\license\*) do (
191- set x=%%~nf
192- rem Skip FriBiDi license, it is not included in the wheel.
193- set fribidi=!x:~0,7!
194- if NOT !fribidi!==fribidi (
195- rem Skip imagequant license, it is not included in the wheel.
196- set libimagequant=!x:~0,13!
197- if NOT !libimagequant!==libimagequant (
198- echo. >> LICENSE
199- echo ===== %%~nf ===== >> LICENSE
200- echo. >> LICENSE
201- type %%f >> LICENSE
202- )
203- )
204- )
205- call winbuild\\build\\build_env.cmd
206- %pythonLocation%\python.exe -m cibuildwheel . --output-dir wheelhouse
189+ for f in winbuild/build/license/*; do
190+ name=$(basename "${f%.*}")
191+ # Skip FriBiDi license, it is not included in the wheel.
192+ [[ $name == fribidi* ]] && continue
193+ # Skip imagequant license, it is not included in the wheel.
194+ [[ $name == libimagequant* ]] && continue
195+ echo "" >> LICENSE
196+ echo "===== $name =====" >> LICENSE
197+ echo "" >> LICENSE
198+ cat "$f" >> LICENSE
199+ done
200+ cmd //c "winbuild\\build\\build_env.cmd && $pythonLocation\\python.exe -m cibuildwheel . --output-dir wheelhouse"
207201 env :
208202 CIBW_ARCHS : ${{ matrix.cibw_arch }}
209203 CIBW_BEFORE_ALL : " {package}\\ winbuild\\ build\\ build_dep_all.cmd"
@@ -217,16 +211,16 @@ jobs:
217211 -e CI -e GITHUB_ACTIONS
218212 mcr.microsoft.com/windows/servercore:ltsc2022
219213 powershell C:\pillow\.github\workflows\wheels-test.ps1 %CD%\..\venv-test'
220- shell : cmd
214+ shell : bash
221215
222216 - name : Upload wheels
223- uses : actions/upload-artifact@v5
217+ uses : actions/upload-artifact@v6
224218 with :
225219 name : dist-windows-${{ matrix.cibw_arch }}
226220 path : ./wheelhouse/*.whl
227221
228222 - name : Upload fribidi.dll
229- uses : actions/upload-artifact@v5
223+ uses : actions/upload-artifact@v6
230224 with :
231225 name : fribidi-windows-${{ matrix.cibw_arch }}
232226 path : winbuild\build\bin\fribidi*
@@ -246,7 +240,7 @@ jobs:
246240
247241 - run : make sdist
248242
249- - uses : actions/upload-artifact@v5
243+ - uses : actions/upload-artifact@v6
250244 with :
251245 name : dist-sdist
252246 path : dist/*.tar.gz
@@ -256,7 +250,7 @@ jobs:
256250 runs-on : ubuntu-latest
257251 name : Count dists
258252 steps :
259- - uses : actions/download-artifact@v6
253+ - uses : actions/download-artifact@v7
260254 with :
261255 pattern : dist-*
262256 path : dist
@@ -275,13 +269,13 @@ jobs:
275269 runs-on : ubuntu-latest
276270 name : Upload wheels to scientific-python-nightly-wheels
277271 steps :
278- - uses : actions/download-artifact@v6
272+ - uses : actions/download-artifact@v7
279273 with :
280274 pattern : dist-!(sdist)*
281275 path : dist
282276 merge-multiple : true
283277 - name : Upload wheels to scientific-python-nightly-wheels
284- uses : scientific-python/upload-nightly-action@b36e8c0c10dbcfd2e05bf95f17ef8c14fd708dbf # 0.6.2
278+ uses : scientific-python/upload-nightly-action@5748273c71e2d8d3a61f3a11a16421c8954f9ecf # 0.6.3
285279 with :
286280 artifacts_path : dist
287281 anaconda_nightly_upload_token : ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}
@@ -297,7 +291,7 @@ jobs:
297291 permissions :
298292 id-token : write
299293 steps :
300- - uses : actions/download-artifact@v6
294+ - uses : actions/download-artifact@v7
301295 with :
302296 pattern : dist-*
303297 path : dist
0 commit comments