Skip to content

Commit 9366318

Browse files
ci: simplify cache key in workflows
1 parent 4a5b9f9 commit 9366318

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
target: ${{ matrix.target }}
4444
rustflags: ""
45-
cache-key: ${{ github.workflow }}-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
45+
cache-key: ${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
4646

4747
- name: Install dependencies (macOS)
4848
if: matrix.os == 'macos-latest'

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
with:
4747
target: ${{ matrix.target }}
4848
rustflags: ""
49-
cache-key: ${{ github.workflow }}-${{ github.event.number }}-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
49+
cache-key: ${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
5050

5151
- name: Install dependencies (macOS)
5252
if: matrix.os == 'macos-latest'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
target: ${{ matrix.target }}
4646
rustflags: ""
47-
cache-key: ${{ github.workflow }}-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
47+
cache-key: ${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
4848

4949
- name: Install dependencies
5050
if: matrix.os == 'macos-latest'

0 commit comments

Comments
 (0)