Skip to content

Commit 561d341

Browse files
committed
CI test
1 parent 320b065 commit 561d341

File tree

1 file changed

+26
-52
lines changed

1 file changed

+26
-52
lines changed

.github/workflows/build-run-applications.yml

Lines changed: 26 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -29,64 +29,28 @@ concurrency:
2929

3030
jobs:
3131
build:
32-
continue-on-error: ${{ matrix.continue_on_error == true }}
32+
continue-on-error: ${{ matrix.allow_fail == true }}
3333
env:
3434
component_manager_ver: "2.2.*"
3535
idf_build_apps_ver: "2.10.1"
3636
strategy:
3737
fail-fast: false
3838
matrix:
39+
idf_ver:
40+
- "latest"
41+
- "release-v6.0"
42+
- "release-v5.5"
43+
- "release-v5.4"
44+
- "release-v5.3"
45+
- "release-v5.2"
46+
- "release-v5.1"
47+
parallel_index: [1, 2, 3]
3948
include:
49+
# Default values for all versions
50+
- parallel_count: 3
51+
allow_fail: false
4052
- idf_ver: "latest"
41-
parallel_count: 5
42-
parallel_index: 1
43-
continue_on_error: true
44-
- idf_ver: "latest"
45-
parallel_count: 5
46-
parallel_index: 2
47-
continue_on_error: true
48-
- idf_ver: "latest"
49-
parallel_count: 5
50-
parallel_index: 3
51-
continue_on_error: true
52-
- idf_ver: "latest"
53-
parallel_count: 5
54-
parallel_index: 4
55-
continue_on_error: true
56-
- idf_ver: "latest"
57-
parallel_count: 5
58-
parallel_index: 5
59-
continue_on_error: true
60-
- idf_ver: "release-v5.1"
61-
parallel_count: 2
62-
parallel_index: 1
63-
- idf_ver: "release-v5.1"
64-
parallel_count: 2
65-
parallel_index: 2
66-
- idf_ver: "release-v5.2"
67-
parallel_count: 2
68-
parallel_index: 1
69-
- idf_ver: "release-v5.2"
70-
parallel_count: 2
71-
parallel_index: 2
72-
- idf_ver: "release-v5.3"
73-
parallel_count: 2
74-
parallel_index: 1
75-
- idf_ver: "release-v5.3"
76-
parallel_count: 2
77-
parallel_index: 2
78-
- idf_ver: "release-v5.4"
79-
parallel_count: 2
80-
parallel_index: 1
81-
- idf_ver: "release-v5.4"
82-
parallel_count: 2
83-
parallel_index: 2
84-
- idf_ver: "release-v5.5"
85-
parallel_count: 2
86-
parallel_index: 1
87-
- idf_ver: "release-v5.5"
88-
parallel_count: 2
89-
parallel_index: 2
53+
allow_fail: true
9054
runs-on: ubuntu-latest
9155
container: espressif/idf:${{ matrix.idf_ver }}
9256
steps:
@@ -100,7 +64,7 @@ jobs:
10064
separator: ';' # idf-build-apps expects files seprated with semicolon
10165

10266
- name: Build ESP-BSP applications
103-
continue-on-error: ${{ matrix.continue_on_error == true }}
67+
continue-on-error: ${{ matrix.allow_fail == true }}
10468
if: always()
10569
shell: bash
10670
env:
@@ -118,12 +82,22 @@ jobs:
11882
11983
# Warning, if failed with master
12084
- name: Warn if latest build failed
121-
if: ${{ env.BUILD_FAILED == 'true' && matrix.continue_on_error == true }}
85+
if: ${{ env.BUILD_FAILED == 'true' && matrix.allow_fail == true }}
12286
run: |
12387
echo "::warning::Build failed for idf_ver=${{ matrix.idf_ver }} (ignored because it's 'latest')"
12488
echo "### ⚠️ Build failed for idf_ver=${{ matrix.idf_ver }}" >> $GITHUB_STEP_SUMMARY
12589
echo "This failure was ignored (continue-on-error enabled)." >> $GITHUB_STEP_SUMMARY
12690
91+
# Warning, if failed with master
92+
- name: Warn if latest build failed Comment PR
93+
if: ${{ env.BUILD_FAILED == 'true' && matrix.allow_fail == true }}
94+
uses: thollander/actions-comment-pull-request@v3
95+
with:
96+
comment-tag: ci_fail_warn_${{ matrix.idf_ver }}
97+
message: |
98+
### ⚠️ Build failed for idf_ver=${{ matrix.idf_ver }} index=${{ matrix.parallel_index }}
99+
This failure was ignored (continue-on-error enabled).
100+
127101
- uses: actions/upload-artifact@v4
128102
if: github.repository_owner == 'espressif' && needs.prepare.outputs.build_only == '0'
129103
with:

0 commit comments

Comments
 (0)