ci: introduce CI_LINT option

This will abort if lint programs are not found, and is meant primarily
for the lint job in CI. Supersedes the REQUIRED argument in
add_glob_target as it's a superior replacement by being a built-in
solution.
This commit is contained in:
dundargoc
2023-06-24 00:29:53 +02:00
committed by GitHub
parent 4dc86477b6
commit 46e95909bf
3 changed files with 10 additions and 14 deletions

View File

@ -48,7 +48,7 @@ jobs:
cmake --build .deps
- if: success() || failure() && steps.abort_job.outputs.status == 'success'
run: cmake -B build -G Ninja
run: cmake -B build -G Ninja -D CI_LINT=ON
- if: "!cancelled()"
name: Determine if run should be aborted