summaryrefslogtreecommitdiffstats
path: root/.gitlab
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-10-19 13:18:19 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-10-19 13:23:06 (GMT)
commitb0fe66684639541592e91f3065c62609adbf8512 (patch)
tree1ba6568bcde4b597869cb163dc214534332045f4 /.gitlab
parent792863ac290dbacad80c4b074ce64c29687d2837 (diff)
downloadCMake-b0fe66684639541592e91f3065c62609adbf8512.zip
CMake-b0fe66684639541592e91f3065c62609adbf8512.tar.gz
CMake-b0fe66684639541592e91f3065c62609adbf8512.tar.bz2
ci: use a patched sccache on macOS
This version is much less likely to timeout on server startup since it runs the expensive computation in a background thread. See https://github.com/mozilla/sccache/pull/868 for the status.
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/ci/sccache.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/.gitlab/ci/sccache.sh b/.gitlab/ci/sccache.sh
index f7d51ff..af24710 100755
--- a/.gitlab/ci/sccache.sh
+++ b/.gitlab/ci/sccache.sh
@@ -2,17 +2,17 @@
set -e
-readonly version="0.2.13"
-
case "$( uname -s )" in
Linux)
+ version="0.2.13"
shatool="sha256sum"
sha256sum="28a5499e340865b08b632306b435913beb590fbd7b49a3f887a623b459fabdeb"
platform="x86_64-unknown-linux-musl"
;;
Darwin)
+ version="gfe63078"
shatool="shasum -a 256"
- sha256sum="f564e948abadfc9e409eb1cd7babf24c6784057d5506c3b0a04cdd37cd830ae9"
+ sha256sum="60a0302b1d7227f7ef56abd82266353f570d27c6e850c56c6448bf62def38888"
platform="x86_64-apple-darwin"
;;
*)
@@ -20,6 +20,7 @@ case "$( uname -s )" in
exit 1
;;
esac
+readonly version
readonly shatool
readonly sha256sum
readonly platform
@@ -27,10 +28,17 @@ readonly platform
readonly filename="sccache-$version-$platform"
readonly tarball="$filename.tar.gz"
+if [ "$( uname -s )" = "Darwin" ]; then
+ url="https://paraview.org/files/dependencies"
+else
+ url="https://github.com/mozilla/sccache/releases/download/$version"
+fi
+readonly url
+
cd .gitlab
echo "$sha256sum $tarball" > sccache.sha256sum
-curl -OL "https://github.com/mozilla/sccache/releases/download/$version/$tarball"
+curl -OL "$url/$tarball"
$shatool --check sccache.sha256sum
tar xf "$tarball"
mv "$filename/sccache" .