Skip to content

Commit 69a59ee

Browse files
committed
CI test
1 parent 320b065 commit 69a59ee

File tree

1 file changed

+21
-53
lines changed

1 file changed

+21
-53
lines changed

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

Lines changed: 21 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -29,64 +29,26 @@ 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-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:
@@ -100,7 +62,7 @@ jobs:
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,11 +80,17 @@ 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 }}
84+
uses: thollander/actions-comment-pull-request@v3
12285
run: |
12386
echo "::warning::Build failed for idf_ver=${{ matrix.idf_ver }} (ignored because it's 'latest')"
12487
echo "### ⚠️ Build failed for idf_ver=${{ matrix.idf_ver }}" >> $GITHUB_STEP_SUMMARY
12588
echo "This failure was ignored (continue-on-error enabled)." >> $GITHUB_STEP_SUMMARY
89+
with:
90+
comment-tag: benchmark_results
91+
message: |
92+
### ⚠️ Build failed for idf_ver=${{ matrix.idf_ver }} index=${{ matrix.parallel_index }}
93+
This failure was ignored (continue-on-error enabled).
12694
12795
- uses: actions/upload-artifact@v4
12896
if: github.repository_owner == 'espressif' && needs.prepare.outputs.build_only == '0'

0 commit comments

Comments
 (0)