turtle/.github/workflows
Alexander Grund 64fa700f2d
GHA: Fix CMake tests on MinGW
The runners have MinGW installed in 2 locations:
- C:\Program Files\Git\mingw64 uses msvcrt.dll and ucrtbase.dll
- C:\mingw64 uses only (the new) ucrtbase.dll

CMake is using the compiler from C:\mingw64 but at runtime it is still loading the
`libstdc++-6.dll` from the Git-MinGW as it is started from the Git bash.

This causes conflicts with functions compiled into the executable and those used by the runtime.
Most notably the string from `abi::__cxa_demangle` is allocated on a different heap
so freeing it with `free` called from the executable corrupts the heap leading to a SIGSEGV / Exit code 0xc0000374 in the tests.

B2 doesn't suffer from this as it modifies `$PATH` when running each test such that the right libraries are used.
Do it similarly in the GHA-CI config.
2026-07-04 12:37:03 +02:00
..
ci.yml GHA: Fix CMake tests on MinGW 2026-07-04 12:37:03 +02:00
release.yml GHA: Fix doc build 2025-04-05 18:38:43 +02:00