Skip to content

Commit f82a871

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/reusable-tests.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ jobs:
369369
name: Test ${{ matrix.node.path }}
370370
runs-on: ubuntu-latest
371371
timeout-minutes: 30
372+
env:
373+
# Allow sccache to work
374+
CARGO_INCREMENTAL: "false"
375+
SCCACHE_GHA_ENABLED: "true"
376+
RUSTC_WRAPPER: "sccache"
372377
strategy:
373378
fail-fast: false
374379
matrix:
@@ -492,6 +497,9 @@ jobs:
492497
path: ${{ matrix.node.path }}/target
493498
key: cargo-${{ runner.os }}-${{ matrix.node.path }}-${{ env.ANCHOR_VERSION }}-${{ env.SOLANA_CLI_VERSION }}-${{ hashFiles('**/Cargo.lock') }}
494499

500+
- name: Run sccache-cache
501+
uses: mozilla-actions/sccache-action@v0.0.9
502+
495503
- run: ${{ matrix.node.cmd }}
496504
name: ${{ matrix.node.path }} program test
497505

0 commit comments

Comments
 (0)