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:
14 matrix: 14 matrix:
15 platform: [ubuntu-latest, windows-latest, macos-latest] 15 platform: [ubuntu-latest, windows-latest, macos-latest]
16 runs-on: ${{ matrix.platform }} 16 runs-on: ${{ matrix.platform }}
17 env:
18 SCCACHE_GHA_ENABLED: "true"
19 RUSTC_WRAPPER: "sccache"
17 steps: 20 steps:
18 - name: Checkout code 21 - name: Checkout code
19 uses: actions/checkout@v3 22 uses: actions/checkout@v3
@@ -30,11 +33,8 @@ jobs:
30 with: 33 with:
31 path: ~/.cargo/registry 34 path: ~/.cargo/registry
32 key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} 35 key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
33 - name: Cache cargo build 36 - name: Run sccache-cache
34 uses: actions/cache@v3 37 uses: mozilla-actions/sccache-action@v0.0.3
35 with:
36 path: target
37 key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
38 - name: Check formatting 38 - name: Check formatting
39 run: cargo +nightly fmt --all -- --check 39 run: cargo +nightly fmt --all -- --check
40 - name: Check Clippy 40 - name: Check Clippy