ci: use the sccache which installed in the docker image (#31332)

This commit is contained in:
Yihau Chen 2023-04-25 11:44:43 +08:00 committed by GitHub
parent 16f3dcd5d2
commit f6591158ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ if [[ -n $CI ]]; then
echo "--- $0 ... (with sccache enabled)" echo "--- $0 ... (with sccache enabled)"
# sccache # sccache
ARGS+=( ARGS+=(
--env "RUSTC_WRAPPER=/home/.cargo/bin/sccache" --env "RUSTC_WRAPPER=/usr/local/cargo/bin/sccache"
--env AWS_ACCESS_KEY_ID --env AWS_ACCESS_KEY_ID
--env AWS_SECRET_ACCESS_KEY --env AWS_SECRET_ACCESS_KEY
--env SCCACHE_BUCKET --env SCCACHE_BUCKET

View File

@ -36,5 +36,6 @@ RUN set -x \
&& cargo install mdbook-linkcheck \ && cargo install mdbook-linkcheck \
&& cargo install svgbob_cli \ && cargo install svgbob_cli \
&& cargo install --git https://github.com/rustwasm/wasm-pack --rev b4e619c8a13a8441b804895348afbfd4fb1a68a3 \ && cargo install --git https://github.com/rustwasm/wasm-pack --rev b4e619c8a13a8441b804895348afbfd4fb1a68a3 \
&& cargo install sccache \
&& rustc --version \ && rustc --version \
&& cargo --version && cargo --version