mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
ci(test): add parsers cache
This commit is contained in:
parent
9d47b2558b
commit
1170c13cea
1 changed files with 13 additions and 1 deletions
14
.github/workflows/test-core.yml
vendored
14
.github/workflows/test-core.yml
vendored
|
|
@ -31,7 +31,19 @@ jobs:
|
|||
run: |
|
||||
bash ./scripts/ci-install.sh
|
||||
|
||||
- if: inputs.type == 'build'
|
||||
- name: Setup parsers cache
|
||||
id: parsers-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.local/share/nvim/site/parser/
|
||||
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
|
||||
'./lua/nvim-treesitter/async.lua',
|
||||
'./lua/nvim-treesitter/config.lua',
|
||||
'./lua/nvim-treesitter/install.lua',
|
||||
'./lua/nvim-treesitter/parsers.lua'
|
||||
) }}
|
||||
|
||||
- if: ${{ inputs.type == 'build' && steps.parsers-cache.outputs.cache-hit != 'true' }}
|
||||
name: Compile parsers
|
||||
run: $NVIM -l ./scripts/install-parsers.lua --max-jobs=10
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue