Merge pull request #496 from albestro/update_cmake_ci

Update CMake in CI
This commit is contained in:
Gudmundur Adalsteinsson 2021-06-29 22:03:57 +00:00 committed by GitHub
commit 1ae57c983b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -106,6 +106,23 @@ matrix:
# packages:
# - clang-5.0
before_script:
- mkdir -p /tmp/cmake.root
- |
if [ $TRAVIS_OS_NAME = 'linux' ]; then
CMAKE_PKG_SUFFIX="linux-x86_64"
else
CMAKE_PKG_SUFFIX="macos10.10-universal"
fi
- wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.5-$CMAKE_PKG_SUFFIX.tar.gz" | tar --strip-components=1 -xz -C /tmp/cmake.root
- |
if [ $TRAVIS_OS_NAME = 'linux' ]; then
CMAKE_BIN_DIR="bin"
else
CMAKE_BIN_DIR="CMake.app/Contents/bin"
fi
- export PATH=/tmp/cmake.root/$CMAKE_BIN_DIR:$PATH
# Build and check this project
script:
- eval "${MATRIX_EVAL}"

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0.0)
cmake_minimum_required(VERSION 3.11)
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")