From 13a59a38d3385b4c58ef6e0e77694881b46cb7dc Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 20 Dec 2022 21:24:39 +1100 Subject: [PATCH] ci(caching): split caches by matrix variables (#3257) Previously, some of the caches for these job runs were overlapping. By incorporating the relevant matrix variables into the cache key, every instance of this job gets its own cache. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55ba1b7c..e3e1332c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,6 +116,7 @@ jobs: - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 with: + key: ${{ matrix.target }} save-if: ${{ github.ref == 'refs/heads/master' }} - run: cargo check --package libp2p --all-features --target=${{ matrix.target }} @@ -144,6 +145,7 @@ jobs: - uses: Swatinem/rust-cache@359a70e43a0bb8a13953b04a90f76428b4959bb6 # v2.2.0 with: + key: ${{ matrix.features }} save-if: ${{ github.ref == 'refs/heads/master' }} - run: cargo check --package libp2p --features="${{ matrix.features }}"