Commit 443ad241b4

443ad241b46f2ebf9e36d3efbbbbce045bf7dc08

parent: 3b86be0545

Unregistered key

Ulyssa <git@ulyssa.dev> · 2023-10-21 01:48 UTC
committer: <noreply@github.com>

Use mozilla-actions/sccache-action for caching builds (#169)

Layout: unified · split

.github/workflows/ci.yml +5 −5
@@ -14,6 +14,9 @@ jobs:
1414 matrix:
1515 platform: [ubuntu-latest, windows-latest, macos-latest]
1616 runs-on: ${{ matrix.platform }}
17 env:
18 SCCACHE_GHA_ENABLED: "true"
19 RUSTC_WRAPPER: "sccache"
1720 steps:
1821 - name: Checkout code
1922 uses: actions/checkout@v3
@@ -30,11 +33,8 @@ jobs:
3033 with:
3134 path: ~/.cargo/registry
3235 key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
33 - name: Cache cargo build
34 uses: actions/cache@v3
35 with:
36 path: target
37 key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
36 - name: Run sccache-cache
37 uses: mozilla-actions/sccache-action@v0.0.3
3838 - name: Check formatting
3939 run: cargo +nightly fmt --all -- --check
4040 - name: Check Clippy