Skip to content

Commit 72bc4bf

Browse files
committed
fix(ci): cache hashes
1 parent c596965 commit 72bc4bf

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
@@ -64,31 +64,31 @@ jobs:
6464
path: |
6565
~/.cargo/registry
6666
~/.cargo/git
67-
key: ${{ runner.os }}-cargo
67+
key: ${{ runner.os }}-cargo-${{ hashFiles('.git/modules/deps/atuin/HEAD', '.git/modules/home/.local/share/nvim/site/pack/default/opt/difftastic.nvim/HEAD') }}
6868
restore-keys: |
6969
${{ runner.os }}-cargo
7070
- name: cache atuin
7171
uses: actions/cache@v5
7272
with:
7373
path: |
7474
deps/atuin/target
75-
key: ${{ runner.os }}-atuin-${{ hashFiles('deps/atuin/Cargo.lock') }}
75+
key: ${{ runner.os }}-atuin-${{ hashFiles('.git/modules/deps/atuin/HEAD') }}
7676
restore-keys: |
7777
${{ runner.os }}-atuin-
7878
- name: cache ccls
7979
uses: actions/cache@v5
8080
with:
8181
path: |
8282
deps/ccls/Release
83-
key: ${{ runner.os }}-ccls-${{ hashFiles('deps/ccls/Release/CMakeCache.txt') }}
83+
key: ${{ runner.os }}-ccls-${{ hashFiles('.git/modules/deps/ccls/HEAD') }}
8484
restore-keys: |
8585
${{ runner.os }}-ccls-
8686
- name: cache difftastic
8787
uses: actions/cache@v5
8888
with:
8989
path: |
9090
home/.local/share/nvim/site/pack/default/opt/difftastic.nvim/target
91-
key: ${{ runner.os }}-difftastic-${{ hashFiles('home/.local/share/nvim/site/pack/default/opt/difftastic.nvim/Cargo.lock') }}
91+
key: ${{ runner.os }}-difftastic-${{ hashFiles('.git/modules/home/.local/share/nvim/site/pack/default/opt/difftastic.nvim/HEAD') }}
9292
restore-keys: |
9393
${{ runner.os }}-difftastic-
9494
- name: build

0 commit comments

Comments
 (0)