mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
ci: cache parsers for workflows/tests
This commit is contained in:
committed by
Stephan Seitz
parent
e7875c025b
commit
2c7c87570b
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user