diff --git a/images/macos/scripts/build/install-common-utils.sh b/images/macos/scripts/build/install-common-utils.sh index 7c3a87cde..df25bbc6f 100644 --- a/images/macos/scripts/build/install-common-utils.sh +++ b/images/macos/scripts/build/install-common-utils.sh @@ -24,6 +24,15 @@ for package in $common_packages; do brew install "$kotlin_rb_path" ;; + cmake) + # Pin cmake bottle to 3.31.6 due to a backward compatibility issue with the latest version + # https://github.com/actions/runner-images/issues/11926 + cmake_commit="b4e46db74e74a8c1650b38b1da222284ce1ec5ce" + cmake_rb_link="https://raw.githubusercontent.com/Homebrew/homebrew-core/$cmake_commit/Formula/c/cmake.rb" + cmake_rb_path=$(download_with_retry "$cmake_rb_link") + brew install "$cmake_rb_path" + ;; + tcl-tk@8) brew_smart_install "$package" if is_VenturaX64 || is_SonomaX64; then