Build application in sdk-nrf-toolchain docker image #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build app in NCS docker container | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
container: jangalda/draft-ncs-toolchain:0.4 | |
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 |