From 1170c13ceaf3b718c695d3dd73e6a09697c616aa Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sat, 6 Dec 2025 18:17:59 +0100 Subject: [PATCH] ci(test): add parsers cache --- .github/workflows/test-core.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index f20f1939d..61e15f028 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -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