Merge pull request #813 from rtfeldman/ci_caching

CI caching with sccache
This commit is contained in:
Richard Feldman 2020-12-21 23:18:52 -05:00 committed by GitHub
commit 2a7124b6a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 18 deletions

View file

@ -2,6 +2,9 @@ on: [pull_request]
name: CI
variables:
RUSTC_WRAPPER: "./ci/sccache"
jobs:
test:
name: fmt, clippy, test, test --release
@ -28,24 +31,6 @@ jobs:
- run: rustup component add rustfmt
- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache compiled valgrind
uses: actions/cache@v1
with:
path: ~/valgrind-3.6.1/
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/cargo@v1
name: rustfmt version
with:
@ -84,3 +69,5 @@ jobs:
with:
command: test
args: --release
- run: ./ci/sccache --show-stats

BIN
ci/sccache Executable file

Binary file not shown.