We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31a98d3 commit 7935c17Copy full SHA for 7935c17
ci/docker/scripts/sccache.bash
@@ -3,13 +3,17 @@ set -xe
3
4
VERSION=0.2.12
5
TARGET=x86_64-unknown-linux-musl
6
+# from https://github.com/mozilla/sccache/releases
7
+SHA="26fd04c1273952cc2a0f359a71c8a1857137f0ee3634058b3f4a63b69fc8eb7f"
8
+DL_URL="https://github.com/mozilla/sccache/releases/download"
9
BIN_DIR=/usr/local/bin
10
TEMP_DIR=$(mktemp -d)
11
12
cd "${TEMP_DIR}"
13
mkdir -p "${BIN_DIR}"
14
-curl -sSL "https://github.com/mozilla/sccache/releases/download/${VERSION}/sccache-${VERSION}-${TARGET}.tar.gz" | \
15
+curl -sSL -O "${DL_URL}/${VERSION}/sccache-${VERSION}-${TARGET}.tar.gz"
16
+echo "${SHA} sccache-${VERSION}-${TARGET}.tar.gz" | sha256sum --check -
17
tar -xzf - --strip-components 1
18
cp sccache "${BIN_DIR}/sccache"
19
chmod +x "${BIN_DIR}/sccache"
0 commit comments