ci: use cmd shell for make in the native Windows MinGW job

Since Git for Windows 2.56 (runner image win22/20261004), UCRT-based
libstdc++-6.dll gets loaded instead of the Strawberry Perl one.
Using SHELL=cmd keeps the PATH set up by ci-scripts.

Developed with the assistance of generative AI.
This commit is contained in:
Ralph Lange committed 2026-10-20 23:23:14 -04:00
1 parent c01382bb5e
commit c1df48fe46
1 file changed
+7
+7
View File
@@ -221,6 +221,13 @@ jobs:
sudo apt-get update
sudo apt-get -y install qemu-system-x86 g++-mingw-w64-x86-64 gdb
if: runner.os == 'Linux'
- name: "Use cmd shell for make"
# Git's sh.exe wrapper prepends Git's own MinGW runtime DLLs to PATH,
# which are incompatible with the Strawberry Perl compiler.
# SHELL from the environment is ignored, but make treats variable
# definitions in MAKEFLAGS like command line arguments (for all make calls).
run: '"MAKEFLAGS=SHELL=cmd" | Out-File -FilePath $env:GITHUB_ENV -Append'
if: runner.os == 'Windows' && matrix.cmp == 'gcc'
- name: Prepare and compile dependencies
run: python .ci/cue.py prepare
- name: Build main module