-
Notifications
You must be signed in to change notification settings - Fork 28
39 lines (32 loc) · 980 Bytes
/
build-ncs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build app in NCS docker container
on:
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
container: jangalda/draft-ncs-toolchain:0.5
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