Skip to content

Commit 1cd5657

Browse files
Merge pull request #3 from hotdata-dev/shefeek/enable_sccache
Enabling sccache for faster compiles
2 parents 80883e4 + fcb96f5 commit 1cd5657

2 files changed

Lines changed: 10 additions & 1 deletion

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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
RUST_BACKTRACE: 1
1111
CARGO_TERM_COLOR: always
12+
RUSTC_WRAPPER: "sccache"
1213

1314
jobs:
1415
fmt:
@@ -31,7 +32,7 @@ jobs:
3132
strategy:
3233
matrix:
3334
os:
34-
- ubuntu-latest
35+
- ubuntu-latest-m
3536
- macos-latest
3637
rust: [stable]
3738
steps:
@@ -43,6 +44,9 @@ jobs:
4344
toolchain: ${{ matrix.rust }}
4445
components: clippy
4546

47+
- name: Install sccache
48+
uses: mozilla-actions/sccache-action@v0.0.6
49+
4650
- name: Cache cargo registry
4751
uses: actions/cache@v4
4852
with:

0 commit comments

Comments
 (0)