Skip to content

Commit f2334b3

Browse files
committed
[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 1c1efa7 commit f2334b3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/examples-nrfconnect.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ jobs:
8383
- name: Update nRF Connect SDK revision to the currently recommended.
8484
timeout-minutes: 15
8585
run: scripts/run_in_build_env.sh "python3 scripts/setup/nrfconnect/update_ncs.py --update --shallow"
86+
continue-on-error: true
8687
- name: Run unit tests of factory data generation script
8788
timeout-minutes: 15
8889
run: scripts/run_in_build_env.sh "./scripts/tools/nrfconnect/tests/test_generate_factory_data.py"
8990
- name: Build example nRF Connect SDK Lock App on nRF52840 DK
9091
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
92+
continue-on-error: true
9193
timeout-minutes: 15
9294
run: |
9395
scripts/examples/nrfconnect_example.sh lock-app nrf52840dk_nrf52840
@@ -97,6 +99,7 @@ jobs:
9799
/tmp/bloat_reports/
98100
- name: Build example nRF Connect SDK Lighting App on nRF52840 DK
99101
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
102+
continue-on-error: true
100103
timeout-minutes: 15
101104
run: |
102105
scripts/examples/nrfconnect_example.sh lighting-app nrf52840dk_nrf52840
@@ -106,6 +109,7 @@ jobs:
106109
/tmp/bloat_reports/
107110
- name: Build example nRF Connect SDK Lighting App on nRF52840 Dongle
108111
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
112+
continue-on-error: true
109113
timeout-minutes: 15
110114
run: |
111115
scripts/examples/nrfconnect_example.sh lighting-app nrf52840dongle_nrf52840 -DCONF_FILE=prj_no_dfu.conf -DCONFIG_CHIP_ROTATING_DEVICE_ID=y
@@ -115,6 +119,7 @@ jobs:
115119
/tmp/bloat_reports/
116120
- name: Build example nRF Connect SDK Lighting App on nRF52840 DK with RPC
117121
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
122+
continue-on-error: true
118123
timeout-minutes: 20
119124
run: |
120125
scripts/examples/nrfconnect_example.sh lighting-app nrf52840dk_nrf52840 -DOVERLAY_CONFIG=rpc.overlay
@@ -124,6 +129,7 @@ jobs:
124129
/tmp/bloat_reports/
125130
- name: Build example nRF Connect SDK Shell on nRF52840 DK
126131
if: github.event_name == 'push' || steps.changed_paths.outputs.shell == 'true'
132+
continue-on-error: true
127133
timeout-minutes: 15
128134
run: |
129135
scripts/examples/nrfconnect_example.sh shell nrf52840dk_nrf52840
@@ -133,6 +139,7 @@ jobs:
133139
/tmp/bloat_reports/
134140
- name: Build example nRF Connect SDK Pigweed on nRF52840 DK
135141
if: github.event_name == 'push' || steps.changed_paths.outputs.pigweed-app == 'true'
142+
continue-on-error: true
136143
timeout-minutes: 15
137144
run: |
138145
scripts/examples/nrfconnect_example.sh pigweed-app nrf52840dk_nrf52840
@@ -142,6 +149,7 @@ jobs:
142149
/tmp/bloat_reports/
143150
- name: Build example nRF Connect SDK Lock App on nRF5340 DK
144151
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
152+
continue-on-error: true
145153
timeout-minutes: 15
146154
run: |
147155
scripts/examples/nrfconnect_example.sh lock-app nrf5340dk_nrf5340_cpuapp
@@ -151,6 +159,7 @@ jobs:
151159
/tmp/bloat_reports/
152160
- name: Build example nRF Connect SDK Lighting App on nRF5340 DK
153161
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
162+
continue-on-error: true
154163
timeout-minutes: 15
155164
run: |
156165
scripts/examples/nrfconnect_example.sh lighting-app nrf5340dk_nrf5340_cpuapp
@@ -160,6 +169,7 @@ jobs:
160169
/tmp/bloat_reports/
161170
- name: Build example nRF Connect SDK Pump App on nRF52840 DK
162171
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
172+
continue-on-error: true
163173
timeout-minutes: 15
164174
run: |
165175
scripts/examples/nrfconnect_example.sh pump-app nrf52840dk_nrf52840
@@ -169,6 +179,7 @@ jobs:
169179
/tmp/bloat_reports/
170180
- name: Build example nRF Connect SDK Pump Controller App on nRF52840 DK
171181
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
182+
continue-on-error: true
172183
timeout-minutes: 15
173184
run: |
174185
scripts/examples/nrfconnect_example.sh pump-controller-app nrf52840dk_nrf52840
@@ -177,6 +188,7 @@ jobs:
177188
examples/pump-controller-app/nrfconnect/build/zephyr/zephyr.elf \
178189
/tmp/bloat_reports/
179190
- name: Build example nRF Connect SDK All Clusters App on nRF52840 DK
191+
continue-on-error: true
180192
timeout-minutes: 20
181193
run: |
182194
scripts/examples/nrfconnect_example.sh all-clusters-app nrf52840dk_nrf52840 -DCONF_FILE=prj_dfu.conf

0 commit comments

Comments
 (0)