-
Notifications
You must be signed in to change notification settings - Fork 152
111 lines (105 loc) · 2.93 KB
/
b-parasite.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: firmware build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
name: Check code format
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check clang-format
uses: jidicula/clang-format-action@v4.9.0
with:
check-path: "code/nrf-connect"
exclude-regex: '\/build\/'
build-blinky:
runs-on: ubuntu-latest
name: Build blinky
needs:
- lint
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build blinky
uses: ./.github/actions/build
with:
sample-dir: code/nrf-connect/samples/blinky
board: bparasite_nrf52840
revision: 2.0.0
output-bin: blinky_nrf52840.hex
build-input:
runs-on: ubuntu-latest
name: Build input
needs:
- lint
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build input
uses: ./.github/actions/build
with:
sample-dir: code/nrf-connect/samples/input
board: bparasite_nrf52840
revision: 2.0.0
output-bin: input_nrf52840.hex
build-soil-read-loop:
runs-on: ubuntu-latest
name: Build soil_read_loop
needs:
- lint
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build soil_read_loop
uses: ./.github/actions/build
with:
sample-dir: code/nrf-connect/samples/soil_read_loop
board: bparasite_nrf52840
revision: 2.0.0
output-bin: soil_read_loop_nrf52840.hex
build-ble:
strategy:
matrix:
soc: [nrf52840, nrf52833]
revision: [1.1.0, 1.2.0, 2.0.0]
runs-on: ubuntu-latest
name: Build ble ${{ matrix.soc }}@${{ matrix.revision }}
needs:
- lint
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
with:
sample-dir: code/nrf-connect/samples/ble
board: bparasite_${{ matrix.soc }}
revision: ${{ matrix.revision }}
cmake-extra: -DCONFIG_PRST_BLE_ENCODING_BTHOME_V2=y -DCONFIG_PRST_SLEEP_DURATION_SEC=1 -DCONFIG_PRSTLIB_LOG_LEVEL_DBG=y
output-bin: ble_${{ matrix.soc }}_${{ matrix.revision }}_debug.hex
build-zigbee:
strategy:
matrix:
soc: [nrf52840, nrf52833]
revision: [1.2.0, 2.0.0]
runs-on: ubuntu-latest
name: Build zigbee ${{ matrix.soc }}@${{ matrix.revision }}
needs:
- lint
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build
with:
sample-dir: code/nrf-connect/samples/zigbee
board: bparasite_${{ matrix.soc }}
revision: ${{ matrix.revision }}
cmake-extra: -DCONFIG_PRSTLIB_LOG_LEVEL_DBG=y
output-bin: zigbee_${{ matrix.soc }}_${{ matrix.revision }}_debug.hex