mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
ci: fix file name for cache calculation
This commit is contained in:
parent
86345612b7
commit
3e316204f8
2 changed files with 3 additions and 2 deletions
2
.github/workflows/test-queries.yml
vendored
2
.github/workflows/test-queries.yml
vendored
|
|
@ -73,7 +73,7 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
./parser/
|
./parser/
|
||||||
~/AppData/Local/nvim/pack/nvim-treesitter/start/nvim-treesitter/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_selectors.lua') }}
|
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') }}
|
||||||
|
|
||||||
- name: Compile parsers
|
- name: Compile parsers
|
||||||
run: $NVIM --headless -c "lua require'nvim-treesitter.install'.prefer_git=false" -c "TSInstallSync all" -c "q"
|
run: $NVIM --headless -c "lua require'nvim-treesitter.install'.prefer_git=false" -c "TSInstallSync all" -c "q"
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,8 @@ function M.select_compiler_args(repo, compiler)
|
||||||
}
|
}
|
||||||
if
|
if
|
||||||
#vim.tbl_filter(function(file)
|
#vim.tbl_filter(function(file)
|
||||||
return file:match "%.cc$" or file:match "%cpp$" or file:match "%.cxx$"
|
local ext = vim.fn.fnamemodify(file, ":e")
|
||||||
|
return ext == "cc" or ext == "cpp" or ext == "cxx"
|
||||||
end, repo.files) > 0
|
end, repo.files) > 0
|
||||||
then
|
then
|
||||||
table.insert(args, "-lstdc++")
|
table.insert(args, "-lstdc++")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue