Skip to content

Commit 7dbc31e

Browse files
committed
chore: Add sccache to workflows
1 parent 292b095 commit 7dbc31e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/reusable-tests.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ env:
3030
~/.cargo/registry/cache/
3131
~/.cargo/git/db/
3232
./target/
33+
# Allow sccache to work
34+
CARGO_INCREMENTAL: "false"
35+
SCCACHE_GHA_ENABLED: "true"
36+
RUSTC_WRAPPER: "sccache"
3337

3438
jobs:
3539
test-core:
@@ -492,6 +496,9 @@ jobs:
492496
path: ${{ matrix.node.path }}/target
493497
key: cargo-${{ runner.os }}-${{ matrix.node.path }}-${{ env.ANCHOR_VERSION }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
494498

499+
- name: Run sccache-cache
500+
uses: mozilla-actions/sccache-action@v0.0.9
501+
495502
- run: ${{ matrix.node.cmd }}
496503
name: ${{ matrix.node.path }} program test
497504

0 commit comments

Comments
 (0)