Skip to content

Commit 16cf441

Browse files
authored
build: add cmake dependency to ISO build script (#22338)
* build: add cmake dependency to ISO build script * ci: Log CMake version and warn if below 3.20 during ISO build.
1 parent f74c918 commit 16cf441

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

hack/jenkins/build_iso.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ source ./hack/jenkins/installers/check_install_linux_crons.sh
3636

3737
# Make sure all required packages are installed
3838
sudo apt-get update
39-
sudo apt-get -y install build-essential unzip rsync bc python3 p7zip-full
39+
sudo apt-get -y install build-essential unzip rsync bc python3 p7zip-full cmake
40+
41+
# Log Cmake version
42+
CMAKE_VERSION=$(cmake --version | head -n1 | awk '{print $3}')
43+
echo "Start of ISO build: CMake version: $CMAKE_VERSION"
44+
if dpkg --compare-versions "$CMAKE_VERSION" lt "3.20"; then
45+
echo "WARNING: CMake version $CMAKE_VERSION is less than 3.20. this will cause a slower build due to rebuidling cmake ..."
46+
fi
4047

4148
# Let's make sure we have the newest ISO reference
4249
curl -L https://github.com/kubernetes/minikube/raw/master/Makefile --output Makefile-head

0 commit comments

Comments
 (0)