We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9322bf commit ec64092Copy full SHA for ec64092
ci_build.sh
@@ -14,9 +14,21 @@ JOBS=2
14
15
cmake_install() {
16
local CMAKE_INSTALL_DIR=/tmp/cmake.root
17
+ local CMAKE_SUFFIX="none"
18
+
19
+ if [ $TRAVIS_OS_NAME = "linux" ]; then
20
+ set CMAKE_SUFFIX="linux-x86_64"
21
+ elif [ $TRAVIS_OS_NAME = "osx" ]; then
22
+ set CMAKE_SUFFIX="macos-universal"
23
+ else
24
+ echo "TRAVIS_OS_NAME $TRAVIS_OS_NAME not expected"
25
+ exit 1
26
+ fi
27
28
mkdir -p $CMAKE_INSTALL_DIR
- wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-linux-x86_64.tar.gz" \
29
+ wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-$CMAKE_SUFFIX.tar.gz" \
30
| tar --strip-components=1 -xz -C $CMAKE_INSTALL_DIR
31
32
export PATH=$CMAKE_INSTALL_DIR/bin:$PATH
33
cmake --version
34
}
0 commit comments