Skip to content

Commit 36e49ca

Browse files
Enabling sccache for faster compiles
1 parent 80883e4 commit 36e49ca

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build]
2+
# Use sccache for faster compilation
3+
# Install: cargo install sccache
4+
# To enable: Set RUSTC_WRAPPER=sccache in your environment
5+
# rustc-wrapper = "sccache" # Uncomment after installing sccache

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
env:
1010
RUST_BACKTRACE: 1
1111
CARGO_TERM_COLOR: always
12+
CARGO_INCREMENTAL: 0
13+
SCCACHE_GHA_ENABLED: "true"
14+
RUSTC_WRAPPER: "sccache"
1215

1316
jobs:
1417
fmt:
@@ -43,6 +46,9 @@ jobs:
4346
toolchain: ${{ matrix.rust }}
4447
components: clippy
4548

49+
- name: Install sccache
50+
uses: mozilla-actions/sccache-action@v0.0.6
51+
4652
- name: Cache cargo registry
4753
uses: actions/cache@v4
4854
with:

0 commit comments

Comments
 (0)