aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2020-01-25 10:43:40 -0700
committerGitHub <noreply@github.com>2020-01-25 10:43:40 -0700
commit4bf11533a93c0e46477489a114274360bd58548b (patch)
tree3283592af231121b043af8fab0ab367360a76ca5
parentaf56c5890cd28f051147e36fa3c1d8553ec944ea (diff)
parent210ffbf4e07b63d7d13c4be4d9e3f547cc609b08 (diff)
downloadfpm-4bf11533a93c0e46477489a114274360bd58548b.tar.gz
fpm-4bf11533a93c0e46477489a114274360bd58548b.zip
Merge pull request #27 from certik/cmake
Install cmake using a binary
-rw-r--r--.github/workflows/CI.yml10
-rwxr-xr-xci/install_cmake.sh7
2 files changed, 10 insertions, 7 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index c9618f5..2f351a1 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -31,13 +31,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v1
- - name: Set up Python 3.x
- uses: actions/setup-python@v1 # Use pip to install latest CMake, & FORD/Jin2For, etc.
- with:
- python-version: 3.x
-
- - name: Set up common
- run: pip install --upgrade cmake
+ - name: Install CMake Linux
+ if: contains(matrix.os, 'ubuntu')
+ run: ci/install_cmake.sh
- name: Install GFortran Linux
if: contains(matrix.os, 'ubuntu')
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