v2 / .github / problem-matchers / register_all.vsh
19 lines · 16 sloc · 647 bytes · 0eaa85725b54fcce2f4c0a7f8dbdf52b65c66a97
Raw
1// The task of this program, is to register all available .json files
2// in this folder with Github Actions, so that it can make annotations
3// for all found notices/warnings/errors produced by the V compiler
4// while running the CI jobs.
5// Those annotations provide a way to get a quick overview for failures,
6// without having to scroll into the detailed logs produced by each job.
7
8const github_job = getenv('GITHUB_JOB')
9
10if github_job == '' {
11 exit(0)
12}
13
14dump(github_job)
15chdir(@VEXEROOT)!
16for f in walk_ext('.github/problem-matchers/', '.json').sorted() {
17 println('::add-matcher::${real_path(f)}')
18 println('registered matcher: `${f}`')
19}
20