From 2aa7a9123fe1614041c13bb03032ebc0dad467b1 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 28 Feb 2023 14:26:41 +1300 Subject: [PATCH] ci: use cache for each matrix --- .github/workflows/check-pull-request.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-pull-request.yml b/.github/workflows/check-pull-request.yml index 9f57fb38..4fdbb37a 100644 --- a/.github/workflows/check-pull-request.yml +++ b/.github/workflows/check-pull-request.yml @@ -79,8 +79,8 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-test-pallets-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo-test-pallets- + key: ${{ runner.os }}-cargo-test-${{ matrix.pallet }}-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo-test-${{ matrix.pallet }}- - run: cargo test --all-features --all-targets ${{ env.CARGO_ARGS }} -p ${{ matrix.pallet }} test-runtime: @@ -106,8 +106,8 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-test-runtime-${{ hashFiles('**/Cargo.lock') }} - restore-keys: ${{ runner.os }}-cargo-test-runtime- + key: ${{ runner.os }}-cargo-test-${{ matrix.runtime }}-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo-test-${{ matrix.runtime }}- - run: cargo test --all-features --all-targets ${{ env.CARGO_ARGS }} -p ${{ matrix.runtime }} test-full: