| 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 | |
| 8 | const github_job = getenv('GITHUB_JOB') |
| 9 | |
| 10 | if github_job == '' { |
| 11 | exit(0) |
| 12 | } |
| 13 | |
| 14 | dump(github_job) |
| 15 | chdir(@VEXEROOT)! |
| 16 | for f in walk_ext('.github/problem-matchers/', '.json').sorted() { |
| 17 | println('::add-matcher::${real_path(f)}') |
| 18 | println('registered matcher: `${f}`') |
| 19 | } |
| 20 | |