Commit b8fa51d
CI: use the preinstalled mingw-w64 and ninja on windows-latest
The setup-mingw step took 61s to `choco upgrade mingw`, downloading and
extracting a 102 MB 7z -- and the toolchain it installed was never used.
The chocolatey package relocates itself to C:\ProgramData\mingw64\mingw64\bin
while the action appends C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin
to GITHUB_PATH, a path that does not exist, so the compiler lookup fell
through to the mingw-w64 that windows-latest already ships at C:\mingw64\bin
(gcc 15.2.0, ucrt, posix threads). The build logs confirm it:
-- Check for working C compiler: C:/mingw64/bin/cc.exe - skipped
-- The C compiler identification is GNU 15.2.0
The action's only real contribution was hardlinking cc.exe/c++.exe next to
the mingw binaries, which naming gcc/g++ in the cmake invocation makes
unnecessary.
gha-setup-ninja is dropped for the same reason: it downloaded ninja 1.12.1
while the image already has 1.13.2 on PATH.
Also bumps actions/checkout v1 -> v4.
Job time goes from ~2m46s to ~1m40s.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent cbede0a commit b8fa51d
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
0 commit comments