Skip to content

Commit

Permalink
ci: only install sccache if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Jul 22, 2022
1 parent 1a5a4f3 commit 418b37f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ commands:
- restore_cache:
name: Restore cargo cache
keys:
- cargo-{{ checksum "Cargo.lock" }}-a
- cargo-{{ checksum "Cargo.lock" }}
- run:
name: Install sccache
command: |
cargo install sccache
ls ~/.cargo/bin/sccache || cargo install sccache
# This configures Rust to use sccache.
echo 'export "RUSTC_WRAPPER"="sccache"' >> $BASH_ENV
sccache --version
Expand All @@ -40,7 +40,7 @@ commands:
- "~/.cache/sccache"
- save_cache:
name: Save cargo cache
key: cargo-{{ checksum "Cargo.lock" }}-a-{{ epoch }}
key: cargo-{{ checksum "Cargo.lock" }}-{{ epoch }}
paths:
- ~/.cargo

Expand Down

0 comments on commit 418b37f

Please sign in to comment.