From 426f7b28a1f920cb377994dc12e0671d273d7ab2 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Thu, 10 Aug 2023 14:48:34 -0700 Subject: [PATCH 1/3] 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 From 9d74a1bab9f9ebc839f52485514111a468535200 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Thu, 10 Aug 2023 15:08:58 -0700 Subject: [PATCH 2/3] small change to test caches --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e047437eb7..fb16191dc5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -296,3 +296,4 @@ jobs: asset_name: nargo-${{ matrix.target }}.zip overwrite: true tag: ${{ inputs.tag || 'nightly' }} # This will fail if `inputs.tag` is not a tag (e.g. testing a branch) + From a7bc091217320a3273c3262911c4b295fa901e08 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Thu, 10 Aug 2023 15:17:12 -0700 Subject: [PATCH 3/3] undo small change --- .github/workflows/publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb16191dc5..e047437eb7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -296,4 +296,3 @@ jobs: asset_name: nargo-${{ matrix.target }}.zip overwrite: true tag: ${{ inputs.tag || 'nightly' }} # This will fail if `inputs.tag` is not a tag (e.g. testing a branch) -