aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-02-19 16:19:54 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-02-19 17:46:07 +0100
commit5b3e9861a2df635558008ab5129a35d90145028a (patch)
treed42326a941255680367e8c76d69fb933e73d38d1 /.github
parentfix: typos (diff)
downloadnvim-treesitter-5b3e9861a2df635558008ab5129a35d90145028a.tar
nvim-treesitter-5b3e9861a2df635558008ab5129a35d90145028a.tar.gz
nvim-treesitter-5b3e9861a2df635558008ab5129a35d90145028a.tar.bz2
nvim-treesitter-5b3e9861a2df635558008ab5129a35d90145028a.tar.lz
nvim-treesitter-5b3e9861a2df635558008ab5129a35d90145028a.tar.xz
nvim-treesitter-5b3e9861a2df635558008ab5129a35d90145028a.tar.zst
nvim-treesitter-5b3e9861a2df635558008ab5129a35d90145028a.zip
ci: simplify cache key
Also ensure new matrix fields are automatically added to cache key.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test-queries.yml6
-rw-r--r--.github/workflows/tests.yml6
2 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/test-queries.yml b/.github/workflows/test-queries.yml
index e1606f2fc..6b7772201 100644
--- a/.github/workflows/test-queries.yml
+++ b/.github/workflows/test-queries.yml
@@ -74,7 +74,11 @@ jobs:
path: |
./parser/
~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/
- key: ${{ matrix.os }}-${{ matrix.cc }}-${{ matrix.nvim_tag }}-parsers-v1-${{ hashFiles('./lockfile.json', './lua/nvim-treesitter/parsers.lua', './lua/nvim-treesitter/install.lua', './lua/nvim-treesitter/shell_command_selectors.lua') }}
+ key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
+ './lockfile.json',
+ './lua/nvim-treesitter/install.lua',
+ './lua/nvim-treesitter/parsers.lua',
+ './lua/nvim-treesitter/shell_command_selectors.lua') }}
- name: Compile parsers
run: $NVIM --headless -c "lua require'nvim-treesitter.install'.prefer_git=false" -c "TSInstallSync all" -c "q"
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index b3858b5de..8d71edeb0 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -53,7 +53,11 @@ jobs:
path: |
./parser/
~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/parser/
- key: ${{ matrix.os }}-${{ matrix.cc }}-parsers-v1-${{ hashFiles('./lockfile.json', './lua/nvim-treesitter/parsers.lua', './lua/nvim-treesitter/install.lua', './lua/nvim-treesitter/shell_selectors.lua') }}
+ key: parsers-${{ join(matrix.*, '-') }}-${{ hashFiles(
+ './lockfile.json',
+ './lua/nvim-treesitter/install.lua',
+ './lua/nvim-treesitter/parsers.lua',
+ './lua/nvim-treesitter/shell_selectors.lua') }}
- name: Compile parsers Unix like
if: ${{ runner.os != 'Windows' && steps.parsers-cache.outputs.cache-hit != 'true' }}