Skip to content

Commit 2733c67

Browse files
committed
ci(build): Not fail CI, when used IDF from master
1 parent 296c4ec commit 2733c67

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ concurrency:
2929

3030
jobs:
3131
build:
32+
continue-on-error: ${{ matrix.continue_on_error || false }}
3233
env:
3334
component_manager_ver: "2.2.*"
3435
idf_build_apps_ver: "2.10.1"
@@ -38,18 +39,23 @@ jobs:
3839
- idf_ver: "latest"
3940
parallel_count: 5
4041
parallel_index: 1
42+
continue_on_error: true
4143
- idf_ver: "latest"
4244
parallel_count: 5
4345
parallel_index: 2
46+
continue_on_error: true
4447
- idf_ver: "latest"
4548
parallel_count: 5
4649
parallel_index: 3
50+
continue_on_error: true
4751
- idf_ver: "latest"
4852
parallel_count: 5
4953
parallel_index: 4
54+
continue_on_error: true
5055
- idf_ver: "latest"
5156
parallel_count: 5
5257
parallel_index: 5
58+
continue_on_error: true
5359
- idf_ver: "release-v5.1"
5460
parallel_count: 2
5561
parallel_index: 1
@@ -108,6 +114,14 @@ jobs:
108114
idf-build-apps find ${{env.ALL_CHANGED_FILES}}
109115
idf-build-apps build --parallel-count ${{ matrix.parallel_count }} --parallel-index ${{ matrix.parallel_index }} ${{env.ALL_CHANGED_FILES}} --collect-app-info build_info_${{ matrix.idf_ver }}_${{ matrix.parallel_index }}.json
110116
117+
# Warning, if failed with master
118+
- name: Warn if latest build failed
119+
if: ${{ failure() && matrix.idf_ver == 'latest' }}
120+
run: |
121+
echo "::warning::Build failed for idf_ver=${{ matrix.idf_ver }} (ignored because it's 'latest')"
122+
echo "### ⚠️ Build failed for idf_ver=${{ matrix.idf_ver }}" >> $GITHUB_STEP_SUMMARY
123+
echo "This failure was ignored (continue-on-error enabled)." >> $GITHUB_STEP_SUMMARY
124+
111125
- uses: actions/upload-artifact@v4
112126
if: github.repository_owner == 'espressif' && needs.prepare.outputs.build_only == '0'
113127
with:

0 commit comments

Comments
 (0)