diff --git a/.github/workflows/build-ncs.yml b/.github/workflows/build-ncs.yml new file mode 100644 index 0000000..c64bd05 --- /dev/null +++ b/.github/workflows/build-ncs.yml @@ -0,0 +1,38 @@ +name: Build app in NCS docker container + +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-22.04 + container: ghcr.io/nrfconnect/sdk-nrf-toolchain:v2.6.99 + defaults: + run: + shell: bash + 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