@@ -29,64 +29,26 @@ concurrency:
2929
3030jobs :
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-v5.1"
42+ - " release-v5.2"
43+ - " release-v5.3"
44+ - " release-v5.4"
45+ - " release-v5.5"
46+ - " release-v6.0"
47+ parallel_index : [1, 2]
3948 include :
40- - 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
49+ # Default values for all versions
50+ - parallel_count : 2
51+ allow_fail : false
9052 runs-on : ubuntu-latest
9153 container : espressif/idf:${{ matrix.idf_ver }}
9254 steps :
10062 separator : ' ;' # idf-build-apps expects files seprated with semicolon
10163
10264 - name : Build ESP-BSP applications
103- continue-on-error : ${{ matrix.continue_on_error == true }}
65+ continue-on-error : ${{ matrix.allow_fail == true }}
10466 if : always()
10567 shell : bash
10668 env :
@@ -118,12 +80,22 @@ jobs:
11880
11981 # Warning, if failed with master
12082 - name : Warn if latest build failed
121- if : ${{ env.BUILD_FAILED == 'true' && matrix.continue_on_error == true }}
83+ if : ${{ env.BUILD_FAILED == 'true' && matrix.allow_fail == true }}
12284 run : |
12385 echo "::warning::Build failed for idf_ver=${{ matrix.idf_ver }} (ignored because it's 'latest')"
12486 echo "### ⚠️ Build failed for idf_ver=${{ matrix.idf_ver }}" >> $GITHUB_STEP_SUMMARY
12587 echo "This failure was ignored (continue-on-error enabled)." >> $GITHUB_STEP_SUMMARY
12688
89+ # Warning, if failed with master
90+ - name : Warn if latest build failed Comment PR
91+ if : ${{ env.BUILD_FAILED == 'true' && matrix.allow_fail == true }}
92+ uses : thollander/actions-comment-pull-request@v3
93+ with :
94+ comment-tag : ci_fail_warn_${{ matrix.idf_ver }}
95+ message : |
96+ ### ⚠️ Build failed for idf_ver=${{ matrix.idf_ver }} index=${{ matrix.parallel_index }}
97+ This failure was ignored (continue-on-error enabled).
98+
12799 - uses : actions/upload-artifact@v4
128100 if : github.repository_owner == 'espressif' && needs.prepare.outputs.build_only == '0'
129101 with :
0 commit comments