Skip to content

Commit 47056d5

Browse files
committed
chore(github) Update cache keys.
1 parent 7055263 commit 47056d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ jobs:
4646
uses: actions/cache@v1
4747
with:
4848
path: ~/.cargo/registry
49-
key: ${{ matrix.target.rust-target }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
49+
key: ${{ matrix.target.id }}-${{ matrix.python }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
5050

5151
- name: Cache Cargo bin
5252
uses: actions/cache@v1
5353
with:
5454
path: ~/.cargo/bin
55-
key: ${{ matrix.target.rust-target }}-cargo-bin-${{ hashFiles('**/Cargo.lock') }}
55+
key: ${{ matrix.target.id }-${{ matrix.python }}}-cargo-bin-${{ hashFiles('**/Cargo.lock') }}
5656

5757
- name: Cache Cargo build
5858
uses: actions/cache@v1
5959
with:
6060
path: target
61-
key: ${{ matrix.target.rust-target }}-${{ matrix.python }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
61+
key: ${{ matrix.target.id }}-${{ matrix.python }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
6262

6363
- name: Set up Python ${{ matrix.python }}
6464
if: matrix.target.id != 'linux-aarch64'
@@ -77,7 +77,7 @@ jobs:
7777
uses: actions/cache@v1
7878
with:
7979
path: ~/.pyenv/versions/
80-
key: ${{ matrix.target.rust-target }}-pyenv-version-${{ matrix.python }}
80+
key: ${{ matrix.target.id }}-${{ matrix.python }}-pyenv-version
8181

8282
- name: Set up Python ${{ matrix.python }}
8383
if: matrix.target.id == 'linux-aarch64'

0 commit comments

Comments
 (0)