diff options
author | Ondřej Čertík <ondrej@certik.us> | 2020-01-25 10:39:14 -0700 |
---|---|---|
committer | Ondřej Čertík <ondrej@certik.us> | 2020-01-25 10:39:14 -0700 |
commit | 210ffbf4e07b63d7d13c4be4d9e3f547cc609b08 (patch) | |
tree | 3283592af231121b043af8fab0ab367360a76ca5 | |
parent | 5cfa1e7e9060fcb20db4037d87fe4fb4b8a788f3 (diff) | |
download | fpm-210ffbf4e07b63d7d13c4be4d9e3f547cc609b08.tar.gz fpm-210ffbf4e07b63d7d13c4be4d9e3f547cc609b08.zip |
Install cmake using a binary
-rw-r--r-- | .github/workflows/CI.yml | 8 | ||||
-rwxr-xr-x | ci/install_cmake.sh | 7 |
2 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8ac6435..2f351a1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -31,12 +31,16 @@ jobs: - name: Checkout code uses: actions/checkout@v1 - - name: Install GFortran and CMake Linux + - name: Install CMake Linux + if: contains(matrix.os, 'ubuntu') + run: ci/install_cmake.sh + + - name: Install GFortran Linux if: contains(matrix.os, 'ubuntu') run: | sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update - sudo apt-get install -y gcc-${GCC_V} gfortran-${GCC_V} cmake + sudo apt-get install -y gcc-${GCC_V} gfortran-${GCC_V} sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \ --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \ --slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V} diff --git a/ci/install_cmake.sh b/ci/install_cmake.sh new file mode 100755 index 0000000..9afe1e2 --- /dev/null +++ b/ci/install_cmake.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -ex + +wget -qO- https://github.com/Kitware/CMake/releases/download/v3.16.3/cmake-3.16.3-Linux-x86_64.tar.gz | sudo tar xz --strip=1 -C /usr/local/ +which cmake +cmake --version |