ci: simplify cache key

Also ensure new matrix fields are automatically added to cache key.
This commit is contained in:
dundargoc 2024-02-19 16:19:54 +01:00 committed by Christian Clason
parent 9bc21966f2
commit 5b3e9861a2
2 changed files with 10 additions and 2 deletions

View file

@ -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' }}