Skip to content

Commit 0189b80

Browse files
authored
Merge pull request #4605 from tannewt/build_fail_matcher
Add build file matcher to pull out which board/language builds fail
2 parents 15f8b80 + 8bef15a commit 0189b80

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
@@ -381,6 +381,8 @@ jobs:
381381
python3 --version
382382
- name: mpy-cross
383383
run: make -C mpy-cross -j2
384+
- name: Setup build failure matcher
385+
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
384386
- name: build
385387
run: python3 -u build_release_files.py
386388
working-directory: tools
@@ -430,6 +432,8 @@ jobs:
430432
python3 --version
431433
- name: mpy-cross
432434
run: make -C mpy-cross -j2
435+
- name: Setup build failure matcher
436+
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
433437
- name: build
434438
run: python3 -u build_release_files.py
435439
working-directory: tools
@@ -528,6 +532,8 @@ jobs:
528532
IDF_TOOLS_PATH: ${{ github.workspace }}/.idf_tools
529533
- name: mpy-cross
530534
run: make -C mpy-cross -j2
535+
- name: Setup build failure matcher
536+
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/workflows/match-build-fail.json"
531537
- name: build
532538
run: |
533539
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)