From ea4682978e55eb6f6be87e3024f62777c7caa3a6 Mon Sep 17 00:00:00 2001 From: David Neto Date: Sat, 17 Aug 2024 13:31:03 -0400 Subject: [PATCH] kokoro mac: download CMake (#1391) This is required for Kokoro Apple Silicon images --- kokoro/scripts/macos/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kokoro/scripts/macos/build.sh b/kokoro/scripts/macos/build.sh index fa51a1017..8aaff362a 100644 --- a/kokoro/scripts/macos/build.sh +++ b/kokoro/scripts/macos/build.sh @@ -30,6 +30,14 @@ unzip -q ninja-mac.zip chmod +x ninja export PATH="$PWD:$PATH" +# Get Cmake (required for Kokoro Apple Silicon images) +CMAKE_VER=3.30.2 +wget -q https://github.com/Kitware/CMake/releases/download/v$CMAKE_VER/cmake-$CMAKE_VER-macos-universal.tar.gz +tar xf cmake-$CMAKE_VER-macos-universal.tar.gz +chmod +x cmake-$CMAKE_VER-macos-universal/CMake.app/Contents/bin/* +export PATH="$PWD/cmake-$CMAKE_VER-macos-universal/CMake.app/Contents/bin:$PATH" + + # Get dependencies. cd $SRC python utils/fetch_sources.py