File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,18 @@ concurrency:
1313jobs :
1414 lint :
1515 runs-on : ubuntu-latest
16+ env :
17+ RUSTC_WRAPPER : sccache
18+ SCCACHE_GHA_ENABLED : " true"
1619 steps :
1720 - name : Checkout sources
1821 uses : actions/checkout@v4
1922 - name : Install Rust toolchain
2023 uses : dtolnay/rust-toolchain@stable
2124 with :
2225 components : rustfmt, clippy
26+ - name : Install sccache
27+ uses : mozilla-actions/sccache-action@v0.0.9
2328 - name : Cache cargo artifacts
2429 uses : Swatinem/rust-cache@v2
2530 - name : Cargo fmt
@@ -39,13 +44,18 @@ jobs:
3944 - os : macos-latest
4045 target : aarch64-apple-darwin
4146 runs-on : ${{ matrix.os }}
47+ env :
48+ RUSTC_WRAPPER : sccache
49+ SCCACHE_GHA_ENABLED : " true"
4250 steps :
4351 - name : Checkout sources
4452 uses : actions/checkout@v4
4553 - name : Install Rust toolchain
4654 uses : dtolnay/rust-toolchain@stable
4755 with :
4856 targets : ${{ matrix.target }}
57+ - name : Install sccache
58+ uses : mozilla-actions/sccache-action@v0.0.9
4959 - name : Cache cargo artifacts
5060 uses : Swatinem/rust-cache@v2
5161 with :
Original file line number Diff line number Diff line change @@ -111,13 +111,18 @@ jobs:
111111 target : aarch64-apple-darwin
112112 use_cross : false
113113 runs-on : ${{ matrix.os }}
114+ env :
115+ RUSTC_WRAPPER : sccache
116+ SCCACHE_GHA_ENABLED : " true"
114117 steps :
115118 - name : Checkout
116119 uses : actions/checkout@v4
117120 - name : Install Rust
118121 uses : dtolnay/rust-toolchain@stable
119122 with :
120123 targets : ${{ matrix.target }}
124+ - name : Install sccache
125+ uses : mozilla-actions/sccache-action@v0.0.9
121126 - name : Cache cargo artifacts
122127 uses : Swatinem/rust-cache@v2
123128 with :
You can’t perform that action at this time.
0 commit comments