-
-
Notifications
You must be signed in to change notification settings - Fork 206
44 lines (41 loc) · 1.14 KB
/
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
44
name: Build firmware
on: push
env:
ZEPHYR_VERSION: 3.4.0
jobs:
NRF:
runs-on: ubuntu-20.04
strategy:
matrix:
ncs_version: [2.4]
board: [zswatch_nrf5340_cpuapp@1,zswatch_nrf5340_cpuapp@2]
steps:
- name: Clone repository
uses: actions/checkout@v2
with:
path: project
submodules: recursive
- name: Build ZSWatch Binaries
working-directory: project
run: |
docker run -v $PWD:/workdir/project nordicplayground/nrfconnect-sdk:v${{ matrix.ncs_version }}-branch \
west build --board ${{ matrix.board }} /workdir/project/app
Posix:
name: Posix build
runs-on: ubuntu-20.04
container:
image: ghcr.io/bcdevices/zephyr:v3.4.0-0
options: --user root
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install deps
run: |
dpkg --add-architecture i386
apt-get -y update
apt-get install --no-install-recommends -y libsdl2-dev:i386
- name: build
run: |
cd /usr/src/zephyr-3.4.0
west build --board native_posix $GITHUB_WORKSPACE/app