-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (37 loc) · 1.16 KB
/
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
40
41
42
name: Build
on:
push:
# pull_request:
# schedule:
# - cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-22.04
container:
image: ghcr.io/nrfconnect/sdk-nrf-toolchain:v2.6.0
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: example-application
- name: Initialize
shell: bash
run: |
source /opt/entrypoint.sh
west init -l example-application
west update -o=--depth=1 -n
apt-get update && apt-get install -y qemu-system-arm
- name: Build firmware
working-directory: example-application
shell: bash
run: |
source /opt/entrypoint.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ncs/toolchains/2be090971e/opt/nanopb/generator-bin
west twister -T app -v --inline-logs --integration
- name: Twister Tests
working-directory: example-application
shell: bash
run: |
source /opt/entrypoint.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ncs/toolchains/2be090971e/opt/nanopb/generator-bin
west twister -T tests -v --inline-logs --integration