Skip to content

Commit

Permalink
ci(cache): tweak key
Browse files Browse the repository at this point in the history
  • Loading branch information
saying121 committed May 21, 2024
1 parent 84cc7f7 commit 8b844c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-clippy-${{ hashFiles('**/Cargo.lock') }}

- name: Install Dbus
if: startsWith(matrix.os, 'ubuntu-')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-fmt-${{ hashFiles('**/Cargo.lock') }}

- uses: dtolnay/rust-toolchain@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-release-${{ hashFiles('**/Cargo.lock') }}

- name: Install Nightly Rust Toolchain
uses: dtolnay/rust-toolchain@master
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-test-clippy-${{ hashFiles('**/Cargo.lock') }}

- name: Install Dbus
if: startsWith(matrix.os, 'ubuntu-')
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }}

- name: Windows Cache leetcode
if: startsWith(matrix.os, 'windows-')
Expand All @@ -77,7 +77,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }}

- name: Macos Cache leetcode
if: startsWith(matrix.os, 'macos-')
Expand All @@ -90,7 +90,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }}

- name: Rust Toolchain
uses: dtolnay/rust-toolchain@master
Expand Down

0 comments on commit 8b844c1

Please sign in to comment.