diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2020-06-23 12:33:22 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2020-07-03 09:34:31 +0200 |
| commit | 65f2dce042182003d83b5ed2a59e0f43521869ac (patch) | |
| tree | 152cbd24d7700d9113f15be992f4160b63a05216 /src/ci/docker/scripts | |
| parent | e1ea006701f99455647a007546eafe45a0cfe162 (diff) | |
| download | rust-65f2dce042182003d83b5ed2a59e0f43521869ac.tar.gz rust-65f2dce042182003d83b5ed2a59e0f43521869ac.zip | |
ci: add native aarch64-gnu docker builder
Diffstat (limited to 'src/ci/docker/scripts')
| -rw-r--r-- | src/ci/docker/scripts/sccache.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ci/docker/scripts/sccache.sh b/src/ci/docker/scripts/sccache.sh index 552afbfee7c..cebba57344b 100644 --- a/src/ci/docker/scripts/sccache.sh +++ b/src/ci/docker/scripts/sccache.sh @@ -1,6 +1,16 @@ set -ex -curl -fo /usr/local/bin/sccache \ - https://ci-mirrors.rust-lang.org/rustc/2018-04-02-sccache-x86_64-unknown-linux-musl +case "$(uname -m)" in + x86_64) + url="https://ci-mirrors.rust-lang.org/rustc/2018-04-02-sccache-x86_64-unknown-linux-musl" + ;; + aarch64) + url="https://ci-mirrors.rust-lang.org/rustc/2019-12-17-sccache-aarch64-unknown-linux-gnu" + ;; + *) + echo "unsupported architecture: $(uname -m)" + exit 1 +esac +curl -fo /usr/local/bin/sccache "${url}" chmod +x /usr/local/bin/sccache |
