Skip to content

Commit

Permalink
[nrf noup] Use "continue-on-error" for examples in CI
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Damian-Nordic committed Aug 2, 2022
1 parent 1c1efa7 commit f2334b3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ jobs:
- name: Update nRF Connect SDK revision to the currently recommended.
timeout-minutes: 15
run: scripts/run_in_build_env.sh "python3 scripts/setup/nrfconnect/update_ncs.py --update --shallow"
continue-on-error: true
- name: Run unit tests of factory data generation script
timeout-minutes: 15
run: scripts/run_in_build_env.sh "./scripts/tools/nrfconnect/tests/test_generate_factory_data.py"
- name: Build example nRF Connect SDK Lock App on nRF52840 DK
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
continue-on-error: true
timeout-minutes: 15
run: |
scripts/examples/nrfconnect_example.sh lock-app nrf52840dk_nrf52840
Expand All @@ -97,6 +99,7 @@ jobs:
/tmp/bloat_reports/
- name: Build example nRF Connect SDK Lighting App on nRF52840 DK
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
continue-on-error: true
timeout-minutes: 15
run: |
scripts/examples/nrfconnect_example.sh lighting-app nrf52840dk_nrf52840
Expand All @@ -106,6 +109,7 @@ jobs:
/tmp/bloat_reports/
- name: Build example nRF Connect SDK Lighting App on nRF52840 Dongle
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
continue-on-error: true
timeout-minutes: 15
run: |
scripts/examples/nrfconnect_example.sh lighting-app nrf52840dongle_nrf52840 -DCONF_FILE=prj_no_dfu.conf -DCONFIG_CHIP_ROTATING_DEVICE_ID=y
Expand All @@ -115,6 +119,7 @@ jobs:
/tmp/bloat_reports/
- name: Build example nRF Connect SDK Lighting App on nRF52840 DK with RPC
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
continue-on-error: true
timeout-minutes: 20
run: |
scripts/examples/nrfconnect_example.sh lighting-app nrf52840dk_nrf52840 -DOVERLAY_CONFIG=rpc.overlay
Expand All @@ -124,6 +129,7 @@ jobs:
/tmp/bloat_reports/
- name: Build example nRF Connect SDK Shell on nRF52840 DK
if: github.event_name == 'push' || steps.changed_paths.outputs.shell == 'true'
continue-on-error: true
timeout-minutes: 15
run: |
scripts/examples/nrfconnect_example.sh shell nrf52840dk_nrf52840
Expand All @@ -133,6 +139,7 @@ jobs:
/tmp/bloat_reports/
- name: Build example nRF Connect SDK Pigweed on nRF52840 DK
if: github.event_name == 'push' || steps.changed_paths.outputs.pigweed-app == 'true'
continue-on-error: true
timeout-minutes: 15
run: |
scripts/examples/nrfconnect_example.sh pigweed-app nrf52840dk_nrf52840
Expand All @@ -142,6 +149,7 @@ jobs:
/tmp/bloat_reports/
- name: Build example nRF Connect SDK Lock App on nRF5340 DK
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
continue-on-error: true
timeout-minutes: 15
run: |
scripts/examples/nrfconnect_example.sh lock-app nrf5340dk_nrf5340_cpuapp
Expand All @@ -151,6 +159,7 @@ jobs:
/tmp/bloat_reports/
- name: Build example nRF Connect SDK Lighting App on nRF5340 DK
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
continue-on-error: true
timeout-minutes: 15
run: |
scripts/examples/nrfconnect_example.sh lighting-app nrf5340dk_nrf5340_cpuapp
Expand All @@ -160,6 +169,7 @@ jobs:
/tmp/bloat_reports/
- name: Build example nRF Connect SDK Pump App on nRF52840 DK
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
continue-on-error: true
timeout-minutes: 15
run: |
scripts/examples/nrfconnect_example.sh pump-app nrf52840dk_nrf52840
Expand All @@ -169,6 +179,7 @@ jobs:
/tmp/bloat_reports/
- name: Build example nRF Connect SDK Pump Controller App on nRF52840 DK
if: github.event_name == 'push' || steps.changed_paths.outputs.nrfconnect == 'true'
continue-on-error: true
timeout-minutes: 15
run: |
scripts/examples/nrfconnect_example.sh pump-controller-app nrf52840dk_nrf52840
Expand All @@ -177,6 +188,7 @@ jobs:
examples/pump-controller-app/nrfconnect/build/zephyr/zephyr.elf \
/tmp/bloat_reports/
- name: Build example nRF Connect SDK All Clusters App on nRF52840 DK
continue-on-error: true
timeout-minutes: 20
run: |
scripts/examples/nrfconnect_example.sh all-clusters-app nrf52840dk_nrf52840 -DCONF_FILE=prj_dfu.conf
Expand Down

0 comments on commit f2334b3

Please sign in to comment.