diff options
author | vitalyster <vitalyster@gmail.com> | 2022-03-30 14:33:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 14:33:21 +0300 |
commit | 6a756105e87c164856bbf021cfe7ff38e283f0bd (patch) | |
tree | f84ffdd82ee531b95cb78bc559e9ae4c38c78b16 | |
parent | 4781ef1e7b9e8071a7da61621e83d8368f95cd11 (diff) |
CI: capture gcc warnings/errors (#444)
-rw-r--r-- | .github/gcc.json | 17 | ||||
-rw-r--r-- | .github/workflows/main.yml | 4 |
2 files changed, 20 insertions, 1 deletions
diff --git a/.github/gcc.json b/.github/gcc.json new file mode 100644 index 00000000..8989d772 --- /dev/null +++ b/.github/gcc.json @@ -0,0 +1,17 @@ +{ + "problemMatcher": [ + { + "owner": "gcc", + "pattern": [ + { + "regexp": "^(.*):(\\d+):(\\d+):\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + ] + } + ] +} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f3b2003b..10194335 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,9 @@ jobs: - uses: actions/checkout@v2 - name: Build tests - run: docker buildx build . --target test -t spectrum:tests + run: | + echo "::add-matcher::.github/gcc.json" + docker buildx build . --target test -t spectrum:tests - name: Run tests run: docker run -tt spectrum:tests linux-clang: |