From 8bef15aa2d5d33c46327fe344edbcfd46b394d31 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 13 Apr 2021 15:55:50 -0700 Subject: [PATCH] Match build failures to better highlight them --- .github/workflows/build.yml | 6 ++++++ .github/workflows/match-build-fail.json | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/match-build-fail.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9923463169..7b67c35fcb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -379,6 +379,8 @@ jobs: python3 --version - name: mpy-cross run: make -C mpy-cross -j2 + - name: Setup build failure matcher + run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json" - name: build run: python3 -u build_release_files.py working-directory: tools @@ -428,6 +430,8 @@ jobs: python3 --version - name: mpy-cross run: make -C mpy-cross -j2 + - name: Setup build failure matcher + run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json" - name: build run: python3 -u build_release_files.py working-directory: tools @@ -526,6 +530,8 @@ jobs: IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools - name: mpy-cross run: make -C mpy-cross -j2 + - name: Setup build failure matcher + run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json" - name: build run: | source $IDF_PATH/export.sh diff --git a/.github/workflows/match-build-fail.json b/.github/workflows/match-build-fail.json new file mode 100644 index 0000000000..938c484f26 --- /dev/null +++ b/.github/workflows/match-build-fail.json @@ -0,0 +1,14 @@ +{ + "problemMatcher": [ + { + "severity": "error", + "pattern": [ + { + "regexp": "^(Build .+ and \\x1b\\[31mfailed\\x1b\\[0m)$", + "message": 1 + } + ], + "owner": "build-failed" + } + ] +}