Skip to content

Commit

Permalink
kokoro mac: download CMake (#1391)
Browse files Browse the repository at this point in the history
This is required for Kokoro Apple Silicon images
  • Loading branch information
dneto0 authored Aug 17, 2024
1 parent 30a857b commit ea46829
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kokoro/scripts/macos/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea46829

Please sign in to comment.