Skip to content

Commit d5a8f47

Browse files
committed
ci: makes cache keys includ arch
Signed-off-by: Takeshi Yoneda <[email protected]>
1 parent 87cf021 commit d5a8f47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/commit.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ jobs:
3030
uses: actions/cache@v4
3131
with:
3232
path: ~/.cargo/registry
33-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
33+
key: -${{ matrix.platform.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
3434
restore-keys: |
35-
${{ runner.os }}-cargo-registry-
35+
${{ matrix.platform.os }}-cargo-registry-
3636
3737
- name: Cache Cargo git index
3838
uses: actions/cache@v4
3939
with:
4040
path: ~/.cargo/git
41-
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
41+
key: ${{ matrix.platform.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
4242
restore-keys: |
43-
${{ runner.os }}-cargo-git-
43+
${{ matrix.platform.os }}-cargo-git-
4444
4545
- name: Set up Rust toolchain
4646
uses: actions-rs/toolchain@v1
@@ -128,7 +128,7 @@ jobs:
128128
~/.cache/go-build
129129
~/go/pkg/mod
130130
~/go/bin
131-
key: unittest-${{ hashFiles('**/go.mod', '**/go.sum') }}-${{ runner.os }}
131+
key: unittest-${{ hashFiles('**/go.mod', '**/go.sum') }}-${{ matrix.platform.os }}
132132
- name: Run integration tests
133133
env:
134134
ENVOY_IMAGE: ghcr.io/envoyproxy/dynamic-modules-examples:${{ github.sha }}

0 commit comments

Comments
 (0)