Skip to content

Commit 64dd4cf

Browse files
committed
ci: adapt cache to main branch
1 parent 37c952e commit 64dd4cf

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ jobs:
9393
run: make nvim-treesitter
9494

9595
- name: Parsers Cache
96+
id: parsers-cache
9697
uses: actions/cache@v4
9798
with:
98-
path: ./nvim-treesitter/parser/
99+
path: deps/nvim-treesitter-data
99100
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
100-
'./nvim-treesitter/lockfile.json',
101-
'./nvim-treesitter/lua/nvim-treesitter/install.lua',
102-
'./nvim-treesitter/lua/nvim-treesitter/parsers.lua') }}
101+
'./deps/nvim-treesitter/lua/nvim-treesitter/parsers.lua') }}
103102

104103
- name: Install parsers
104+
if: steps.parsers-cache.outputs.cache-hit != 'true'
105105
run: make parsers
106106

107107
- name: Run Test

.github/workflows/nightly.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ jobs:
3636
run: make nvim-treesitter
3737

3838
- name: Parsers Cache
39+
id: parsers-cache
3940
uses: actions/cache@v4
4041
with:
41-
path: ./nvim-treesitter/parser/
42+
path: deps/nvim-treesitter-data
4243
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
4344
'./deps/nvim-treesitter/lua/nvim-treesitter/parsers.lua') }}
4445

4546
- name: Install parsers
47+
if: steps.parsers-cache.outputs.cache-hit != 'true'
4648
run: make parsers
4749

4850
- name: Run Test

0 commit comments

Comments
 (0)