jasmcaus / tau

A Micro (1k lines of code) Unit Test Framework for C/C++
MIT License
158 stars 30 forks source link

CI fix: Use fixed mingw version when building for Windows #44

Closed jakeru closed 1 day ago

jakeru commented 6 months ago

This should fix the CI builds for Windows that has been failing for quite some time with the following error message:

Cannot find path
'... lib\mingw\tools\install\mingw64\x86_64-w64-mingw32\lib\libpthread.dll.a'

By upgrading the egor-tensin/setup-mingw from version v2 to v2.2.0 we are able to specify a specific mingw version.

A too new version of mingw, for example 13.2.0, seems to fail the build for us. So let's use the fixed version 12.2.0 which was working fine before.

This solution is suggested for example here: https://github.com/egor-tensin/setup-mingw/issues/17#issuecomment-1890253793

jakeru commented 6 months ago

Note that builds for mingw for platform x86 still fails. But now because of a couple of static asserts instead. They are worth looking into at some point.

jasmcaus commented 1 day ago

thanks much! been struggling for a while now to fix this