File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ set -xe
33
44VERSION=0.2.12
55TARGET=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"
69BIN_DIR=/usr/local/bin
710TEMP_DIR=$( mktemp -d)
811
912cd " ${TEMP_DIR} "
1013mkdir -p " ${BIN_DIR} "
1114
12- 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 -
1317tar -xzf - --strip-components 1
1418cp sccache " ${BIN_DIR} /sccache"
1519chmod +x " ${BIN_DIR} /sccache"
You can’t perform that action at this time.
0 commit comments