Skip to content

Commit 200d155

Browse files
committed
Use sccache
1 parent 18ca6e7 commit 200d155

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,19 @@ jobs:
2424
suffix: zip
2525
name: cargo build
2626
runs-on: ${{ matrix.os }}
27+
2728
steps:
2829
- uses: actions/checkout@v4
2930
- uses: dtolnay/rust-toolchain@stable
30-
- uses: Swatinem/rust-cache@v2
31-
with:
32-
key: "release-lto"
31+
32+
- name: Run sccache-cache
33+
uses: mozilla-actions/[email protected]
34+
3335
- run: cargo build --target=${{ matrix.target }} --profile=release-lto
36+
env:
37+
SCCACHE_GHA_ENABLED: "true"
38+
RUSTC_WRAPPER: "sccache"
39+
3440
- run: |
3541
cp target/${{ matrix.target }}/release-lto/${{ matrix.bin }} ${{ matrix.bin }}
3642

.github/workflows/test.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- uses: dtolnay/rust-toolchain@stable
13-
- uses: Swatinem/rust-cache@v2
14-
with:
15-
key: "test"
13+
- name: Run sccache-cache
14+
uses: mozilla-actions/[email protected]
15+
1616
- run: cargo check
17+
env:
18+
SCCACHE_GHA_ENABLED: "true"
19+
RUSTC_WRAPPER: "sccache"

0 commit comments

Comments
 (0)