experiment with sccache
This commit is contained in:
parent
cbb834f13d
commit
8ef51dc122
|
@ -8,6 +8,10 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
SCCACHE_GHA_ENABLED: true
|
||||||
|
RUSTC_WRAPPER: sccache
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_all:
|
build_all:
|
||||||
name: Rust project - latest
|
name: Rust project - latest
|
||||||
|
@ -30,14 +34,18 @@ jobs:
|
||||||
# avoid the default "-D warnings" which thrashes cache
|
# avoid the default "-D warnings" which thrashes cache
|
||||||
rustflags: ""
|
rustflags: ""
|
||||||
|
|
||||||
|
- name: Run sccache-cache
|
||||||
|
uses: mozilla-actions/sccache-action@v0.0.3
|
||||||
|
|
||||||
|
|
||||||
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
|
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/bin/
|
~/.cargo/bin/
|
||||||
~/.cargo/registry/index/
|
# ~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
# ~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
# ~/.cargo/git/db/
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue