-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.03 KB
/
build-samples.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
name: Build Samples
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
container: ghcr.io/nrfconnect/sdk-nrf-toolchain:v2.7.0
defaults:
run:
# Bash is needed to set toolchain related environment variables in docker container
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: thingsboard
- name: Initialize
run: |
west init -l thingsboard
west update -o=--depth=1 -n
- name: Install Python Dependencies
run: pip install -r thingsboard/scripts/requirements.txt
- name: Build Telemetry Sample
run: |
west build --pristine -b nrf9160dk/nrf9160/ns thingsboard/samples/telemetry
- name: Build Attributes Sample
run: |
west build --pristine -b nrf9160dk/nrf9160/ns thingsboard/samples/attributes
- name: Build RPC Sample
run: |
west build --pristine -b nrf9160dk/nrf9160/ns thingsboard/samples/rpc