Skip to content

Commit 0ffb831

Browse files
Daft-FreakGadgetoid
authored andcommitted
CI: Workaround CMake 4.0.
GitHub appear to have erroneously introduced CMake 4.0 - including a compatibility break with CMake < 3.5 causing the picotool build to fail with an error in mbedtls: pico-sdk/lib/mbedtls/CMakeLists.txt:23 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. Install a custom CMake version until this is resolved. Or, y'know, might as well do this forever because we can't trust upstream :/ See: raspberrypi/pico-sdk#2391 And: actions/runner-images#11926
1 parent 198ee54 commit 0ffb831

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ jobs:
5555
with:
5656
release: '13.3.Rel1'
5757

58+
# CMake 4.0 - erroneously introduced into GitHub runners? -
59+
# removed support for <3.5 and mbedtls hits this
60+
# https://github.com/raspberrypi/pico-sdk/issues/2391
61+
# https://github.com/actions/runner-images/issues/11926
62+
- name: Setup cmake
63+
uses: jwlawson/actions-setup-cmake@v2
64+
with:
65+
cmake-version: '3.31.6'
66+
5867
- name: CMake Version
5968
run: cmake --version
6069

0 commit comments

Comments
 (0)