summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/cmake.sh
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-04-08 13:59:28 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-04-29 15:18:01 (GMT)
commit960158b90dc921a1ac521132861c2689052dd256 (patch)
tree9df9b73442941c2df89fd8a1c4faf0c2b83aa214 /.gitlab/ci/cmake.sh
parent6af91c7c4dc1c04c446d4994f2650234b9f10183 (diff)
downloadCMake-960158b90dc921a1ac521132861c2689052dd256.zip
CMake-960158b90dc921a1ac521132861c2689052dd256.tar.gz
CMake-960158b90dc921a1ac521132861c2689052dd256.tar.bz2
ci: add scripts to download build tools
Diffstat (limited to '.gitlab/ci/cmake.sh')
-rwxr-xr-x.gitlab/ci/cmake.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab/ci/cmake.sh b/.gitlab/ci/cmake.sh
new file mode 100755
index 0000000..4b2f53f
--- /dev/null
+++ b/.gitlab/ci/cmake.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+readonly version="3.17.2"
+readonly sha256sum="dc57f3cc448ca67fc8776b4ad4c22b087b9c6a8e459938b9622b8c7f4ef6b21e"
+readonly filename="cmake-$version-Linux-x86_64"
+readonly tarball="$filename.tar.gz"
+
+cd .gitlab
+
+echo "$sha256sum $tarball" > cmake.sha256sum
+curl -OL "https://github.com/Kitware/CMake/releases/download/v$version/$tarball"
+sha256sum --check cmake.sha256sum
+tar xf "$tarball"
+mv "$filename" cmake