From c1df48fe46fe0405324210db734ef380d0f4c9a7 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Tue, 20 Oct 2026 23:18:19 -0400 Subject: [PATCH] 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. --- .github/workflows/ci-scripts-build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci-scripts-build.yml b/.github/workflows/ci-scripts-build.yml index 9ad6d688d..454b7a96d 100644 --- a/.github/workflows/ci-scripts-build.yml +++ b/.github/workflows/ci-scripts-build.yml @@ -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