From 2366d143dc7c46a56592de3ba632450169516b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ga=C5=82da?= Date: Wed, 27 Mar 2024 10:50:10 +0100 Subject: [PATCH] [nrf noup] Build application in sdk-nrf-toolchain docker image --- .github/workflows/build-ncs.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-ncs.yml diff --git a/.github/workflows/build-ncs.yml b/.github/workflows/build-ncs.yml new file mode 100644 index 0000000..bbc776a --- /dev/null +++ b/.github/workflows/build-ncs.yml @@ -0,0 +1,36 @@ +name: Build app in NCS docker container + +on: + pull_request: + +jobs: + build: + + runs-on: ubuntu-22.04 + container: jangalda/draft-ncs-toolchain:0.6 + steps: + - name: Checkout repository with example application + uses: actions/checkout@v4 + with: + path: example-application + + - name: Prepare west project + run: | + west init -l example-application + west update -o=--depth=1 -n + + - name: Build firmware + working-directory: example-application + run: | + west twister -T app -v --inline-logs --integration + + - name: Store hex files + uses: actions/upload-artifact@v4 + with: + name: built-applications + path: example-application/twister-out/**/zephyr/zephyr.hex + + - name: Twister Tests + working-directory: example-application + run: | + west twister -T tests -v --inline-logs --integration