1#!/bin/sh
2
3# ignore-tidy-linelength
4
5set -ex
6
7case "$(uname -m)" in
8    x86_64)
9        url="https://ci-mirrors.rust-lang.org/rustc/2021-08-24-sccache-v0.2.15-x86_64-unknown-linux-musl"
10        ;;
11    aarch64)
12        url="https://ci-mirrors.rust-lang.org/rustc/2021-08-25-sccache-v0.2.15-aarch64-unknown-linux-musl"
13        ;;
14    *)
15        echo "unsupported architecture: $(uname -m)"
16        exit 1
17esac
18
19curl -fo /usr/local/bin/sccache "${url}"
20chmod +x /usr/local/bin/sccache
21