-
Notifications
You must be signed in to change notification settings - Fork 71
51 lines (45 loc) · 1.43 KB
/
zephyr.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
name: Code check and build tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container: zephyrprojectrtos/ci:latest
env:
CMAKE_PREFIX_PATH: /opt/toolchains
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: bms-firmware
fetch-depth: 0
- name: Initialize
working-directory: bms-firmware
run: |
west init -l .
west update --narrow
west blobs fetch hal_espressif
- name: Coding style check
working-directory: bms-firmware
run: |
apt-get update
apt-get install -y clang-format-15 colordiff
git status
bash scripts/check-style.sh
- name: Build firmware
working-directory: bms-firmware
run: |
cd app
west build -p -b native_sim
west build -p -b bms_5s50_sc
west build -p -b [email protected] -- -DEXTRA_CONF_FILE=oled.conf -DSHIELD=uext_oled
west build -p -b bms_8s50_ic_f072
west build -p -b bms_15s80_sc
west build -p -b bms_16s100_sc
west build -p -b [email protected]
west build -p -b [email protected]
rm -rf build
west build -b [email protected] --sysbuild -p
- name: Run unit-tests
working-directory: bms-firmware
run: |
../zephyr/scripts/twister -T ./tests --integration --inline-logs -n