-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Replace shell: cmd with shell: bash
#9359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -186,24 +186,18 @@ jobs: | |||||
|
|
||||||
| - name: Build wheels | ||||||
| run: | | ||||||
| setlocal EnableDelayedExpansion | ||||||
| for %%f in (winbuild\build\license\*) do ( | ||||||
| set x=%%~nf | ||||||
| rem Skip FriBiDi license, it is not included in the wheel. | ||||||
| set fribidi=!x:~0,7! | ||||||
| if NOT !fribidi!==fribidi ( | ||||||
| rem Skip imagequant license, it is not included in the wheel. | ||||||
| set libimagequant=!x:~0,13! | ||||||
| if NOT !libimagequant!==libimagequant ( | ||||||
| echo. >> LICENSE | ||||||
| echo ===== %%~nf ===== >> LICENSE | ||||||
| echo. >> LICENSE | ||||||
| type %%f >> LICENSE | ||||||
| ) | ||||||
| ) | ||||||
| ) | ||||||
| call winbuild\\build\\build_env.cmd | ||||||
| %pythonLocation%\python.exe -m cibuildwheel . --output-dir wheelhouse | ||||||
| for f in winbuild/build/license/*; do | ||||||
| name=$(basename "${f%.*}") | ||||||
| # Skip FriBiDi license, it is not included in the wheel. | ||||||
| [[ $name == fribidi* ]] && continue | ||||||
| # Skip imagequant license, it is not included in the wheel. | ||||||
| [[ $name == libimagequant* ]] && continue | ||||||
| echo "" >> LICENSE | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
This also works, but I understand if you think it isn't as clear. |
||||||
| echo "===== $name =====" >> LICENSE | ||||||
| echo "" >> LICENSE | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| cat "$f" >> LICENSE | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| done | ||||||
| cmd //c "winbuild\\build\\build_env.cmd && $pythonLocation\\python.exe -m cibuildwheel . --output-dir wheelhouse" | ||||||
| env: | ||||||
| CIBW_ARCHS: ${{ matrix.cibw_arch }} | ||||||
| CIBW_BEFORE_ALL: "{package}\\winbuild\\build\\build_dep_all.cmd" | ||||||
|
|
@@ -217,7 +211,7 @@ jobs: | |||||
| -e CI -e GITHUB_ACTIONS | ||||||
| mcr.microsoft.com/windows/servercore:ltsc2022 | ||||||
| powershell C:\pillow\.github\workflows\wheels-test.ps1 %CD%\..\venv-test' | ||||||
| shell: cmd | ||||||
| shell: bash | ||||||
|
|
||||||
| - name: Upload wheels | ||||||
| uses: actions/upload-artifact@v5 | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.