Something is wrong with the chocolatey installed version of gcc on the windows-2019 image

GCC installed via Chocolatey: https://github.com/DaanDeMeyer/doctest/runs/231595515

GCC installed via scoop: https://github.com/DaanDeMeyer/doctest/runs/231600291

On windows-2019, Compiling with the Chocolatey GCC causes the tests to fail, compiling with the scoop GCC causes the tests to succeed. On windows-2016, the tests succeed regardless of the package manager used to install gcc.

I’m pretty sure that a dll is not found when running the test executables so I suspect there’s either a missing dll or a directory that’s not correctly added to the PATH by chocolatey. Unfortunately these issues are hard to debug with no RDP access to the Windows machines.

As GCC is installed by default on the Windows images, I’m reporting the issue here since I expect it to work if it’s installed by default.

1 Like

Maybe you could try my chocolatey action: https://github.com/crazy-max/ghaction-chocolatey