From 426f7b28a1f920cb377994dc12e0671d273d7ab2 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Thu, 10 Aug 2023 14:48:34 -0700 Subject: [PATCH] chore(ci): Create cache key with consideration to target --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index abade7d04a..e047437eb7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -87,7 +87,7 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Download artifact uses: actions/download-artifact@v3 @@ -169,7 +169,7 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Download artifact uses: actions/download-artifact@v3 @@ -245,7 +245,7 @@ jobs: ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: ${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Download artifact uses: actions/download-artifact@v3