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
3
3
4
4
VERSION=0.2.12
5
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"
6
9
BIN_DIR=/usr/local/bin
7
10
TEMP_DIR=$( mktemp -d)
8
11
9
12
cd " ${TEMP_DIR} "
10
13
mkdir -p " ${BIN_DIR} "
11
14
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 -
13
17
tar -xzf - --strip-components 1
14
18
cp sccache " ${BIN_DIR} /sccache"
15
19
chmod +x " ${BIN_DIR} /sccache"
You can’t perform that action at this time.
0 commit comments