From 4b6c871c8fdd4911b0554e5a59e9d25f2390868e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Thu, 4 Jan 2024 22:43:39 +0100 Subject: [PATCH] CI: Use shared cache (#135) Closes: https://github.com/polkadot-fellows/runtimes/issues/134 --- .github/workflows/clippy.yml | 2 ++ .github/workflows/test.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index 6941e4dddc..5f4bed4e9f 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ec7604957..480f10527a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 \ No newline at end of file + SKIP_WASM_BUILD: 1