diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-04-08 13:59:28 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-04-29 15:18:01 (GMT) |
commit | 960158b90dc921a1ac521132861c2689052dd256 (patch) | |
tree | 9df9b73442941c2df89fd8a1c4faf0c2b83aa214 /.gitlab/ci/sccache.sh | |
parent | 6af91c7c4dc1c04c446d4994f2650234b9f10183 (diff) | |
download | CMake-960158b90dc921a1ac521132861c2689052dd256.zip CMake-960158b90dc921a1ac521132861c2689052dd256.tar.gz CMake-960158b90dc921a1ac521132861c2689052dd256.tar.bz2 |
ci: add scripts to download build tools
Diffstat (limited to '.gitlab/ci/sccache.sh')
-rwxr-xr-x | .gitlab/ci/sccache.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab/ci/sccache.sh b/.gitlab/ci/sccache.sh new file mode 100755 index 0000000..c88cdcc --- /dev/null +++ b/.gitlab/ci/sccache.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +readonly version="0.2.12" +readonly sha256sum="26fd04c1273952cc2a0f359a71c8a1857137f0ee3634058b3f4a63b69fc8eb7f" +readonly filename="sccache-$version-x86_64-unknown-linux-musl" +readonly tarball="$filename.tar.gz" + +cd .gitlab + +echo "$sha256sum $tarball" > sccache.sha256sum +curl -OL "https://github.com/mozilla/sccache/releases/download/$version/$tarball" +sha256sum --check sccache.sha256sum +tar xf "$tarball" +mv "$filename/sccache" . |