diff options
author | Hi Key <test@yfqm.date> | 2020-11-25 23:20:49 +0800 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-22 14:05:17 -0500 |
commit | fe1bd15ad7340a4d5d41299d45340a289daeb1ee (patch) | |
tree | bcfcca703d1504021381924370f2331d8f87a171 /.gitlab/ci | |
parent | 24247155af675b94238ff61967c8a359ce0f0160 (diff) | |
download | cmake-fe1bd15ad7340a4d5d41299d45340a289daeb1ee.tar.gz |
gitlab-ci: add jobs to make Linux release packages for aarch64
Diffstat (limited to '.gitlab/ci')
-rwxr-xr-x | .gitlab/ci/sccache.sh | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/.gitlab/ci/sccache.sh b/.gitlab/ci/sccache.sh index af24710406..77bedaa2ed 100755 --- a/.gitlab/ci/sccache.sh +++ b/.gitlab/ci/sccache.sh @@ -2,21 +2,30 @@ set -e -case "$( uname -s )" in - Linux) +readonly kernel="$(uname -s)-$(uname -m)" +case $kernel in + Linux-x86_64) version="0.2.13" shatool="sha256sum" sha256sum="28a5499e340865b08b632306b435913beb590fbd7b49a3f887a623b459fabdeb" platform="x86_64-unknown-linux-musl" ;; - Darwin) + Linux-aarch64) + version="g6628e1f" + shatool="sha256sum" + sha256sum="bb88adbb5a29c166ecaa78d0593493b609a7f84d91d1228502a908f319b513f0" + platform="aarch64-unknown-linux-musl" + url="https://github.com/hwinit/sccache/releases/download/$version" + ;; + Darwin-x86_64) version="gfe63078" shatool="shasum -a 256" sha256sum="60a0302b1d7227f7ef56abd82266353f570d27c6e850c56c6448bf62def38888" platform="x86_64-apple-darwin" + url="https://paraview.org/files/dependencies" ;; *) - echo "Unrecognized platform $( uname -s )" + echo "Unrecognized platform $kernel" exit 1 ;; esac @@ -28,9 +37,7 @@ readonly platform readonly filename="sccache-$version-$platform" readonly tarball="$filename.tar.gz" -if [ "$( uname -s )" = "Darwin" ]; then - url="https://paraview.org/files/dependencies" -else +if [ -z "$url" ]; then url="https://github.com/mozilla/sccache/releases/download/$version" fi readonly url |