Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
chore: prepare sccache env for docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Jul 2, 2022
1 parent b77f639 commit abb3c65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ ARGS+=(
--env CRATES_IO_TOKEN
)

# sccache
ARGS+=(
--env "RUSTC_WRAPPER=/home/.cargo//bin/sccache"
--env "SCCACHE_DIR=/home/.cache/sccache"
--env SCCACHE_CACHE_SIZE
)

# Also propagate environment variables needed for codecov
# https://docs.codecov.io/docs/testing-with-docker#section-codecov-inside-docker
# We normalize CI to `1`; but codecov expects it to be `true` to detect Buildkite...
Expand Down

0 comments on commit abb3c65

Please sign in to comment.