diff --git a/.github/workflows/CBA.yml b/.github/workflows/CBA.yml index 5a0ddb46b0dea..2c892aa219b00 100644 --- a/.github/workflows/CBA.yml +++ b/.github/workflows/CBA.yml @@ -30,6 +30,8 @@ jobs: cmake -DCMAKE_BUILD_TYPE=RELEASE .. cmake --build . -- -j3 echo "::add-path::$PWD" + - name: Add problem matcher + run: echo "::add-matcher::build-scripts/problem-matchers/clang.json" - name: make run: | ClangBuildAnalyzer --start . diff --git a/build-scripts/problem-matchers/clang.json b/build-scripts/problem-matchers/clang.json new file mode 100644 index 0000000000000..ab035899271bf --- /dev/null +++ b/build-scripts/problem-matchers/clang.json @@ -0,0 +1,18 @@ +{ + "problemMatcher": [ + { + "owner": "cata-clang", + "pattern": [ + { + "regexp": "^(.+):(\\d+):(\\d+):\\s(error|warning):\\s(.+)\\s\\[(.+)\\]$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5, + "code": 6 + } + ] + } + ] +} diff --git a/build-scripts/requirements.sh b/build-scripts/requirements.sh index 99c7a4a5da600..de4f635155ef1 100644 --- a/build-scripts/requirements.sh +++ b/build-scripts/requirements.sh @@ -16,6 +16,9 @@ function just_json return 0 } +# Enable GitHub actions problem matcher +echo "::add-matcher::build-scripts/problem-matchers/clang.json" + if which travis_retry &>/dev/null then travis_retry=travis_retry