Skip to content

Commit 7e67423

Browse files
committed
bump sccache for linux x86_64 to allow caching while PRO'd
1 parent 76fd471 commit 7e67423

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/ci/docker/scripts/sccache.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ set -ex
66

77
case "$(uname -m)" in
88
x86_64)
9-
url="https://ci-mirrors.rust-lang.org/rustc/2021-08-24-sccache-v0.2.15-x86_64-unknown-linux-musl"
9+
url="https://github.com/mozilla/sccache/releases/download/v0.3.3/sccache-v0.3.3-x86_64-unknown-linux-musl.tar.gz"
1010
;;
1111
aarch64)
12-
url="https://ci-mirrors.rust-lang.org/rustc/2021-08-25-sccache-v0.2.15-aarch64-unknown-linux-musl"
12+
# no aarch64 release for 0.3.3, so use this
13+
url="https://github.com/mozilla/sccache/releases/download/v0.3.1/sccache-v0.3.1-aarch64-unknown-linux-musl.tar.gz"
1314
;;
1415
*)
1516
echo "unsupported architecture: $(uname -m)"
1617
exit 1
1718
esac
1819

19-
curl -fo /usr/local/bin/sccache "${url}"
20+
curl -fLo sccache.tar.gz "${url}"
21+
tar zxvf sccache.tar.gz --wildcards --no-anchored 'sccache' --strip-components=1
22+
cp sccache /usr/local/bin/sccache
2023
chmod +x /usr/local/bin/sccache

src/ci/run.sh

+1
Original file line numberDiff line numberDiff line change
@@ -279,5 +279,6 @@ if [ "$RUN_CHECK_WITH_PARALLEL_QUERIES" != "" ]; then
279279
fi
280280

281281
echo "::group::sccache stats"
282+
sccache --version || true
282283
sccache --show-stats || true
283284
echo "::endgroup::"

0 commit comments

Comments
 (0)