Skip to content

Commit

Permalink
CI: Use shared cache (#135)
Browse files Browse the repository at this point in the history
Closes: #134
  • Loading branch information
bkchr authored Jan 4, 2024
1 parent ce1ed26 commit 4b6c871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:

- name: Fetch cache
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
with:
shared-key: "fellowship-cache"

- name: Clippy
run: cargo +nightly clippy --all-targets --locked -q
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:

- name: Fetch cache
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
with:
shared-key: "fellowship-cache"

- name: Test
run: cargo test --workspace --release --locked -q --features=runtime-metrics,try-runtime
Expand All @@ -60,4 +62,4 @@ jobs:
run: cargo test --workspace --release --locked -q --features=runtime-benchmarks,runtime-metrics,try-runtime
env:
RUSTFLAGS: "-C debug-assertions -D warnings"
SKIP_WASM_BUILD: 1
SKIP_WASM_BUILD: 1

0 comments on commit 4b6c871

Please sign in to comment.