ci: cache parsers for workflows/tests

This commit is contained in:
Munif Tanjim
2022-01-21 22:13:24 +06:00
committed by Stephan Seitz
parent e7875c025b
commit 2c7c87570b

View File

@@ -33,8 +33,14 @@ jobs:
run: |
bash ./scripts/ci-install-${{ matrix.os }}.sh
- name: Setup Parsers Cache
id: parsers-cache
uses: actions/cache@v2
with:
path: ./parser/
key: ${{ matrix.os }}-parsers-v1-${{ hashFiles('./lockfile.json', './lua/nvim-treesitter/parsers.lua', './lua/nvim-treesitter/install.lua') }}
- name: Compile parsers Unix like
if: matrix.os != 'windows-latest'
if: ${{ matrix.os != 'windows-latest' && steps.parsers-cache.outputs.cache-hit != 'true' }}
run: |
nvim --headless -c "TSInstallSync all" -c "q"