Skip to content

Commit baf1d5f

Browse files
authored
perf(ci): separate cache steps (#5834)
1 parent cb5a24d commit baf1d5f

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,39 @@ jobs:
5858
neovim: true
5959
# version: v0.11.3
6060
version: nightly
61-
- name: cache
61+
- name: cache cargo
6262
uses: actions/cache@v5
6363
with:
6464
path: |
6565
~/.cargo/registry
6666
~/.cargo/git
67+
key: ${{ runner.os }}-cargo
68+
restore-keys: |
69+
${{ runner.os }}-cargo
70+
- name: cache atuin
71+
uses: actions/cache@v5
72+
with:
73+
path: |
6774
deps/atuin/target
75+
key: ${{ runner.os }}-atuin-${{ hashFiles('deps/atuin/Cargo.lock') }}
76+
restore-keys: |
77+
${{ runner.os }}-atuin-
78+
- name: cache ccls
79+
uses: actions/cache@v5
80+
with:
81+
path: |
6882
deps/ccls/Release
83+
key: ${{ runner.os }}-ccls-${{ hashFiles('deps/ccls/Release/CMakeCache.txt') }}
84+
restore-keys: |
85+
${{ runner.os }}-ccls-
86+
- name: cache difftastic
87+
uses: actions/cache@v5
88+
with:
89+
path: |
6990
home/.local/share/nvim/site/pack/default/opt/difftastic.nvim/target
70-
key: ${{ runner.os }}-cargo-${{ hashFiles('deps/atuin/Cargo.lock', 'deps/ccls/Release/CMakeCache.txt', 'home/.local/share/nvim/site/pack/default/opt/difftastic.nvim/Cargo.lock') }}
91+
key: ${{ runner.os }}-difftastic-${{ hashFiles('home/.local/share/nvim/site/pack/default/opt/difftastic.nvim/Cargo.lock') }}
7192
restore-keys: |
72-
${{ runner.os }}-cargo-
93+
${{ runner.os }}-difftastic-
7394
- name: build
7495
run: make
7596
- name: test build

0 commit comments

Comments
 (0)