Skip to content

Commit 8bef15a

Browse files
committed
Match build failures to better highlight them
1 parent b1f4a9a commit 8bef15a

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ jobs:
379379
python3 --version
380380
- name: mpy-cross
381381
run: make -C mpy-cross -j2
382+
- name: Setup build failure matcher
383+
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
382384
- name: build
383385
run: python3 -u build_release_files.py
384386
working-directory: tools
@@ -428,6 +430,8 @@ jobs:
428430
python3 --version
429431
- name: mpy-cross
430432
run: make -C mpy-cross -j2
433+
- name: Setup build failure matcher
434+
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
431435
- name: build
432436
run: python3 -u build_release_files.py
433437
working-directory: tools
@@ -526,6 +530,8 @@ jobs:
526530
IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
527531
- name: mpy-cross
528532
run: make -C mpy-cross -j2
533+
- name: Setup build failure matcher
534+
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
529535
- name: build
530536
run: |
531537
source $IDF_PATH/export.sh
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"severity": "error",
5+
"pattern": [
6+
{
7+
"regexp": "^(Build .+ and \\x1b\\[31mfailed\\x1b\\[0m)$",
8+
"message": 1
9+
}
10+
],
11+
"owner": "build-failed"
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)