Creates annotations for compiler diagnostics (warnings and errors) when building your code.
Suppose you don't like compiler warnings.
Use the Annotation Failure Action!
It finds problem annotations created by the Improved GCC Problem Matcher and causes the workflow job to fail.
This is way better than -Werror
("any warning is treated as a compilation error") because your build can complete and you can still run your test suite and collect potential test failures.
Optional Directory the build is running in. Matched errors will not be able to point to the correct file or create warnings in the Files changed
overview unless this is correct.
Create annotations for builds done in the default directory. Add this anywhere before starting the build.
- uses: root-project/gcc-problem-matcher-improved@v1
- name: Build
run: |
...
Create annotations for builds done in directory /workspace/build/
- uses: root-project/gcc-problem-matcher-improved@v1
with:
build-directory: /workspace/build/
- name: Build
run: |
...