-
-
Notifications
You must be signed in to change notification settings - Fork 218
43 lines (37 loc) · 1012 Bytes
/
build.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
name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
container: ghcr.io/zephyrproject-rtos/ci:v0.26.2
env:
CMAKE_PREFIX_PATH: /opt/toolchains
strategy:
matrix:
built_type: [debug, release]
board: [zswatch_nrf5340_cpuapp@1, zswatch_nrf5340_cpuapp@3, native_posix]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: ZSWatch
submodules: recursive
- name: Dependencies
run: |
sudo apt update
sudo apt install astyle
- name: Initialize
working-directory: ZSWatch
run: |
west init -l app
west update -o=--depth=1 -n
- name: Style
working-directory: ZSWatch
run: |
west format --dry-run
- name: Build firmware
working-directory: ZSWatch
run: |
west build app -p -b ${{ matrix.board }} -- -DOVERLAY_CONFIG=boards/${{ matrix.built_type }}.conf