mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
ci: cache parsers for workflows/tests
This commit is contained in:
parent
e7875c025b
commit
2c7c87570b
1 changed files with 7 additions and 1 deletions
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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue