Skip to content

Commit

Permalink
CI fix: Use fixed mingw version when building for Windows
Browse files Browse the repository at this point in the history
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 `2.0` to `2.2` 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:
egor-tensin/setup-mingw#17 (comment)
  • Loading branch information
jakeru committed May 13, 2024
1 parent 27de906 commit dea1da8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
uses: egor-tensin/setup-mingw@v2.2.0
with:
platform: ${{ matrix.architecture }}
version: 12.2.0

- name: CMake
run: |
Expand Down

0 comments on commit dea1da8

Please sign in to comment.