Skip to content

Commit 253d262

Browse files
jktjktmichalvasko
authored andcommitted
CI: pin CMake to 3.x on Windows
An update in GitHub action runners upgraded CMake to 4.0.0, which is backwards-incompatible. The first breakage in the dependency stack happens in dlfcn-win32 which explicitly sets the minimal required CMake version to 3.5, and that one got deprecated in CMake 4, apparently. Let's just chicken out and revert stuff rather than trying to fix an unknown number of 3rd-party packages. Bug: actions/runner-images#11926
1 parent b8671b6 commit 253d262

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ jobs:
209209
id: cpu-cores
210210
uses: SimenB/github-actions-cpu-cores@v1
211211

212+
- name: pin CMake to the latest 3.x series
213+
uses: jwlawson/actions-setup-cmake@09fd9b0fb3b239b4b68d9256cd65adf8d6b91da0
214+
with:
215+
cmake-version: '3.31.6'
216+
212217
- name: Install Windows dependencies
213218
run: vcpkg install --triplet=${{ matrix.triplet }} pcre2 pthreads dirent dlfcn-win32 cmocka getopt xxhash
214219

0 commit comments

Comments
 (0)