Skip to content

Commit 860b890

Browse files
committed
Upgrade CMake to 3.6.2 in basemap workflow
1 parent 4954b9d commit 860b890

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/basemap.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,22 @@ jobs:
2626
name: Checkout
2727
uses: actions/checkout@v1
2828
-
29-
name: Install CMake 2.8.6
29+
name: Install CMake 3.6.2
3030
run: |
3131
set -e
3232
. /etc/profile
33-
cd /usr/bin
34-
wget https://raw.githubusercontent.com/minos-org/minos-static/master/static-get
35-
chmod +x static-get
36-
cd /tmp
37-
static-get cmake
38-
cd /
39-
tar -xf /tmp/cmake-*.tar.gz
33+
apt-get update
34+
apt-get install -y libidn11
35+
pkgvers=3.6.2
36+
pkgname=cmake
37+
pkgcode=cmake-${pkgvers}
38+
case "${{matrix.arch}}" in
39+
amd64) pkgfile=${pkgcode}-Linux-x86_64.tar.gz;;
40+
*) pkgfile=${pkgcode}-Linux-i386.tar.gz;;
41+
esac
42+
wget https://github.com/Kitware/CMake/releases/download/v${pkgvers}/${pkgfile} -P /tmp
43+
tar -xf /tmp/${pkgfile} --strip-components=1 -C /usr
44+
rm -rf /tmp/${pkgfile}
4045
cmake --version
4146
-
4247
name: Install GCC toolchain

0 commit comments

Comments
 (0)