ci(test): remove parser cache

Since installation now installs parsers _and_ queries, caching parsers
doesn't allow skipping the installation step (and caching queries does
not pay off).
This commit is contained in:
Christian Clason
2025-05-13 14:30:27 +02:00
committed by Christian Clason
parent e8bfe271b0
commit 6b55bc0fab

View File

@@ -31,26 +31,14 @@ jobs:
run: |
bash ./scripts/ci-install.sh
- if: inputs.type == 'generate'
name: Generate and compile parsers
run: $NVIM -l ./scripts/install-parsers.lua --generate --max-jobs=2
- if: inputs.type == 'build'
name: Setup Parsers Cache
id: parsers-cache
uses: actions/cache@v4
with:
path: |
~/.local/share/nvim/site/parser/
~/AppData/Local/nvim-data/site/parser/
key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
'./lua/nvim-treesitter/install.lua',
'./lua/nvim-treesitter/parsers.lua') }}
- if: inputs.type == 'build'
name: Compile parsers
run: $NVIM -l ./scripts/install-parsers.lua
- if: inputs.type == 'generate'
name: Generate and compile parsers
run: $NVIM -l ./scripts/install-parsers.lua --generate --max-jobs=2
- name: Check parsers
run: $NVIM -l ./scripts/check-parsers.lua