aboutsummaryrefslogtreecommitdiff
path: root/kokoro/android/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kokoro/android/build.sh')
-rw-r--r--kokoro/android/build.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/kokoro/android/build.sh b/kokoro/android/build.sh
index cedf268..b3b2cad 100644
--- a/kokoro/android/build.sh
+++ b/kokoro/android/build.sh
@@ -26,6 +26,18 @@ ANDROID_ABI="armeabi-v7a with NEON"
TOOLCHAIN_PATH=$ANDROID_NDK/build/cmake/android.toolchain.cmake
+# removing the old version
+echo y | sudo apt-get purge --auto-remove cmake
+
+# Installing the 3.10.2 version
+wget http://www.cmake.org/files/v3.10/cmake-3.10.2.tar.gz
+tar -xvzf cmake-3.10.2.tar.gz
+cd cmake-3.10.2/
+./configure
+make
+sudo make install
+echo $(date): $(cmake --version)
+
# Get NINJA.
wget -q https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
unzip -q ninja-linux.zip