ci(test): add parsers cache

This commit is contained in:
Christian Clason 2025-12-06 18:17:59 +01:00
parent 9d47b2558b
commit 1170c13cea

View file

@ -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