diff --git a/src/ci/docker/scripts/sccache.sh b/src/ci/docker/scripts/sccache.sh index 6c713e1f8611f..a16ae85305b46 100644 --- a/src/ci/docker/scripts/sccache.sh +++ b/src/ci/docker/scripts/sccache.sh @@ -6,7 +6,7 @@ set -ex case "$(uname -m)" in x86_64) - url="https://ci-mirrors.rust-lang.org/rustc/2021-08-24-sccache-v0.2.15-x86_64-unknown-linux-musl" + url="https://github.com/mozilla/sccache/releases/download/v0.3.3/sccache-v0.3.3-x86_64-unknown-linux-musl.tar.gz" ;; aarch64) url="https://ci-mirrors.rust-lang.org/rustc/2021-08-25-sccache-v0.2.15-aarch64-unknown-linux-musl" @@ -16,5 +16,7 @@ case "$(uname -m)" in exit 1 esac -curl -fo /usr/local/bin/sccache "${url}" +curl -fLo sccache.tar.gz "${url}" +tar zxvf sccache.tar.gz --wildcards --no-anchored 'sccache' --strip-components=1 +cp sccache /usr/local/bin/sccache chmod +x /usr/local/bin/sccache diff --git a/src/ci/run.sh b/src/ci/run.sh index 5690d8edea6a2..ec899ca6a3482 100755 --- a/src/ci/run.sh +++ b/src/ci/run.sh @@ -279,5 +279,6 @@ if [ "$RUN_CHECK_WITH_PARALLEL_QUERIES" != "" ]; then fi echo "::group::sccache stats" +sccache --version || true sccache --show-stats || true echo "::endgroup::"