cache rust stuff
This commit is contained in:
parent
8f64c252fd
commit
4f545ba6de
1 changed files with 13 additions and 0 deletions
13
.github/workflows/build-and-cache.yml
vendored
13
.github/workflows/build-and-cache.yml
vendored
|
@ -17,6 +17,19 @@ jobs:
|
|||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
with:
|
||||
logger: pretty
|
||||
|
||||
# use sccache for Rust
|
||||
- name: Run sccache-cache
|
||||
if: (env.SCCACHE_GHA_ENABLED == 'true')
|
||||
uses: mozilla-actions/sccache-action@main
|
||||
|
||||
# use rust-cache
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
cache-all-crates: "true"
|
||||
cache-on-failure: "true"
|
||||
cache-targets: "true"
|
||||
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- name: Setup Attic cache
|
||||
uses: ryanccn/attic-action@v0
|
||||
|
|
Loading…
Add table
Reference in a new issue