ci: fix file name for cache calculation

This commit is contained in:
Stephan Seitz 2022-12-29 21:53:30 +01:00
parent 86345612b7
commit 3e316204f8
2 changed files with 3 additions and 2 deletions

View file

@ -99,7 +99,8 @@ function M.select_compiler_args(repo, compiler)
}
if
#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
then
table.insert(args, "-lstdc++")