From 8c102f6e5500c795d091e802e6809c466d4799f4 Mon Sep 17 00:00:00 2001 From: Nicolai Haug Date: Tue, 12 Sep 2023 09:30:10 +0200 Subject: [PATCH 1/3] Add GCC problem matcher --- .github/workflows/nestbuildmatrix.yml | 10 +++++++++- gcc_problem_matcher.json | 17 +++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 gcc_problem_matcher.json diff --git a/.github/workflows/nestbuildmatrix.yml b/.github/workflows/nestbuildmatrix.yml index d6d9362185..f2b3ccc7bb 100644 --- a/.github/workflows/nestbuildmatrix.yml +++ b/.github/workflows/nestbuildmatrix.yml @@ -570,11 +570,19 @@ jobs: -Dwith-libneurosim=${{ contains(matrix.use, 'libneurosim') && '$HOME/.cache/libneurosim.install' || 'OFF' }} \ .. + - name: "Add GCC problem matcher" + run: | + echo "::add-matcher::gcc_problem_matcher.json" + - name: "Build NEST" run: | cd "$NEST_VPATH" env - make VERBOSE=1 + gcc-problem-matcher make VERBOSE=1 + + - name: "Remove GCC problem matcher" + run: | + echo "::remove-matcher owner=gcc-problem-matcher::" - name: "Install NEST" run: | diff --git a/gcc_problem_matcher.json b/gcc_problem_matcher.json new file mode 100644 index 0000000000..81995b4590 --- /dev/null +++ b/gcc_problem_matcher.json @@ -0,0 +1,17 @@ +{ + "problemMatcher": [ + { + "owner": "gcc-problem-matcher", + "pattern": [ + { + "regexp": "^(.*?):(\\d+):(\\d*):?\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + ] + } + ] +} From e885a4b87a0fbca073ecc90aa81e85e8f53bd195 Mon Sep 17 00:00:00 2001 From: Nicolai Haug Date: Tue, 12 Sep 2023 09:36:36 +0200 Subject: [PATCH 2/3] Run GCC problem matcher --- .github/workflows/nestbuildmatrix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nestbuildmatrix.yml b/.github/workflows/nestbuildmatrix.yml index f2b3ccc7bb..c9290af261 100644 --- a/.github/workflows/nestbuildmatrix.yml +++ b/.github/workflows/nestbuildmatrix.yml @@ -578,7 +578,7 @@ jobs: run: | cd "$NEST_VPATH" env - gcc-problem-matcher make VERBOSE=1 + make VERBOSE=1 - name: "Remove GCC problem matcher" run: | From 297735da1753c986ca7e75c1801f9be7740c0a4c Mon Sep 17 00:00:00 2001 From: Nicolai Haug Date: Tue, 12 Sep 2023 10:09:31 +0200 Subject: [PATCH 3/3] Add compiler problem matcher to macos build --- .github/workflows/nestbuildmatrix.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/nestbuildmatrix.yml b/.github/workflows/nestbuildmatrix.yml index c9290af261..9fb8c851fd 100644 --- a/.github/workflows/nestbuildmatrix.yml +++ b/.github/workflows/nestbuildmatrix.yml @@ -692,12 +692,20 @@ jobs: -Dwith-libneurosim=${{ contains(matrix.use, 'libneurosim') && '$HOME/.cache/libneurosim.install' || 'OFF' }} \ .. + - name: "Add GCC problem matcher" + run: | + echo "::add-matcher::gcc_problem_matcher.json" + - name: "Build NEST" run: | cd "$NEST_VPATH" env make VERBOSE=1 + - name: "Remove GCC problem matcher" + run: | + echo "::remove-matcher owner=gcc-problem-matcher::" + - name: "Install NEST" run: | cd "$NEST_VPATH"