Skip to content

Commit e8d6ccd

Browse files
Damian-NordicArekBalysNordic
authored andcommitted
[nrf noup] Use "continue-on-error" for examples in CI
Make building nRF Connect examples optional in github workflows in a sense that they do not fail the workflow if they do not compile. The reason is that the CI is often run for downstream patches, that are required to proceed with changes in NCS or Zephyr and we do not want to force developers to update examples in sdk-connectedhomeip at that moment - they will be updated in the upstream later. Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
1 parent c88913c commit e8d6ccd

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/examples-nrfconnect.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969

7070
- name: Check nRF Connect SDK revision.
7171
run: scripts/run_in_build_env.sh "python3 scripts/setup/nrfconnect/update_ncs.py --check"
72+
continue-on-error: true
7273
- name: Run unit tests of factory data generation script
7374
run: |
7475
scripts/run_in_build_env.sh 'pip3 install -r scripts/setup/requirements.nrfconnect.txt'
@@ -83,6 +84,8 @@ jobs:
8384
/tmp/bloat_reports/
8485
- name: Build example nRF Connect SDK Lighting App on nRF52840 Dongle
8586
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
87+
continue-on-error: true
88+
timeout-minutes: 15
8689
run: |
8790
scripts/examples/nrfconnect_example.sh lighting-app nrf52840dongle_nrf52840 -DCONF_FILE=prj_no_dfu.conf -DCONFIG_CHIP_ROTATING_DEVICE_ID=y
8891
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -91,6 +94,8 @@ jobs:
9194
/tmp/bloat_reports/
9295
- name: Build example nRF Connect SDK Lighting App on nRF52840 DK with RPC
9396
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
97+
continue-on-error: true
98+
timeout-minutes: 20
9499
run: |
95100
scripts/examples/nrfconnect_example.sh lighting-app nrf52840dk_nrf52840 -DOVERLAY_CONFIG=rpc.overlay
96101
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -99,6 +104,8 @@ jobs:
99104
/tmp/bloat_reports/
100105
- name: Build example nRF Connect SDK Light Switch App on nRF52840 DK
101106
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
107+
continue-on-error: true
108+
timeout-minutes: 15
102109
run: |
103110
scripts/examples/nrfconnect_example.sh light-switch-app nrf52840dk_nrf52840
104111
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -107,14 +114,28 @@ jobs:
107114
/tmp/bloat_reports/
108115
- name: Build example nRF Connect SDK Shell on nRF52840 DK
109116
if: github.event_name == 'push' || steps.changed_paths.outputs.shell == 'true'
117+
continue-on-error: true
118+
timeout-minutes: 15
110119
run: |
111120
scripts/examples/nrfconnect_example.sh shell nrf52840dk_nrf52840
112121
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
113122
nrfconnect nrf52840dk_nrf52840 shell \
114123
examples/shell/nrfconnect/build/zephyr/zephyr.elf \
115124
/tmp/bloat_reports/
125+
- name: Build example nRF Connect SDK Pigweed on nRF52840 DK
126+
if: github.event_name == 'push' || steps.changed_paths.outputs.pigweed-app == 'true'
127+
continue-on-error: true
128+
timeout-minutes: 15
129+
run: |
130+
scripts/examples/nrfconnect_example.sh pigweed-app nrf52840dk_nrf52840
131+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
132+
nrfconnect nrf52840dk_nrf52840 pigweed-app \
133+
examples/pigweed-app/nrfconnect/build/zephyr/zephyr.elf \
134+
/tmp/bloat_reports/
116135
- name: Build example nRF Connect SDK Pump App on nRF52840 DK
117136
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
137+
continue-on-error: true
138+
timeout-minutes: 15
118139
run: |
119140
scripts/examples/nrfconnect_example.sh pump-app nrf52840dk_nrf52840
120141
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -123,20 +144,26 @@ jobs:
123144
/tmp/bloat_reports/
124145
- name: Build example nRF Connect SDK Pump Controller App on nRF52840 DK
125146
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
147+
continue-on-error: true
148+
timeout-minutes: 15
126149
run: |
127150
scripts/examples/nrfconnect_example.sh pump-controller-app nrf52840dk_nrf52840
128151
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
129152
nrfconnect nrf52840dk_nrf52840 pump-controller-app \
130153
examples/pump-controller-app/nrfconnect/build/zephyr/zephyr.elf \
131154
/tmp/bloat_reports/
132155
- name: Build example nRF Connect SDK All Clusters App on nRF52840 DK
156+
continue-on-error: true
157+
timeout-minutes: 20
133158
run: |
134159
scripts/examples/nrfconnect_example.sh all-clusters-app nrf52840dk_nrf52840
135160
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
136161
nrfconnect nrf52840dk_nrf52840 all-clusters-app \
137162
examples/all-clusters-app/nrfconnect/build/zephyr/zephyr.elf \
138163
/tmp/bloat_reports/
139164
- name: Build example nRF Connect SDK All Clusters Minimal App on nRF52840 DK
165+
continue-on-error: true
166+
timeout-minutes: 20
140167
run: |
141168
scripts/examples/nrfconnect_example.sh all-clusters-minimal-app nrf52840dk_nrf52840 -DCONF_FILE=prj_dfu.conf
142169
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -145,6 +172,8 @@ jobs:
145172
/tmp/bloat_reports/
146173
- name: Build example nRF Connect SDK Lock App on nRF5340 DK
147174
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
175+
continue-on-error: true
176+
timeout-minutes: 15
148177
run: |
149178
scripts/examples/nrfconnect_example.sh lock-app nrf5340dk_nrf5340_cpuapp
150179
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -153,6 +182,8 @@ jobs:
153182
/tmp/bloat_reports/
154183
- name: Build example nRF Connect SDK Lighting App on nRF5340 DK
155184
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
185+
continue-on-error: true
186+
timeout-minutes: 15
156187
run: |
157188
scripts/examples/nrfconnect_example.sh lighting-app nrf5340dk_nrf5340_cpuapp
158189
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -161,6 +192,8 @@ jobs:
161192
/tmp/bloat_reports/
162193
- name: Build example nRF Connect SDK Lock App on nRF7002 PDK
163194
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
195+
continue-on-error: true
196+
timeout-minutes: 20
164197
run: |
165198
scripts/examples/nrfconnect_example.sh lock-app nrf7002dk_nrf5340_cpuapp
166199
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -169,6 +202,8 @@ jobs:
169202
/tmp/bloat_reports/
170203
- name: Build example nRF Connect SDK Light Switch App on nRF7002 PDK
171204
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
205+
continue-on-error: true
206+
timeout-minutes: 20
172207
run: |
173208
scripts/examples/nrfconnect_example.sh light-switch-app nrf7002dk_nrf5340_cpuapp
174209
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
@@ -177,13 +212,17 @@ jobs:
177212
/tmp/bloat_reports/
178213
- name: Build example nRF Connect SDK Lighting App on nRF7002 PDK
179214
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
215+
continue-on-error: true
216+
timeout-minutes: 20
180217
run: |
181218
scripts/examples/nrfconnect_example.sh lighting-app nrf7002dk_nrf5340_cpuapp
182219
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
183220
nrfconnect nrf7002dk_nrf5340_cpuapp lighting-app \
184221
examples/light-switch-app/nrfconnect/build/zephyr/zephyr.elf \
185222
/tmp/bloat_reports/
186223
- name: Build example nRF Connect SDK All Clusters App on nRF7002 PDK
224+
continue-on-error: true
225+
timeout-minutes: 20
187226
run: |
188227
scripts/examples/nrfconnect_example.sh all-clusters-app nrf7002dk_nrf5340_cpuapp -DCONF_FILE=prj_release.conf
189228
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \

0 commit comments

Comments
 (0)