-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (80 loc) · 2.31 KB
/
ci.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
name: ci
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 1 * * 0'
jobs:
#
# build job for vanilla zephyr
#
build-zephyr:
# "vanilla" zephyr build
runs-on: ubuntu-22.04
container: ghcr.io/zephyrproject-rtos/ci:v0.26.2
env:
CMAKE_PREFIX_PATH: /opt/toolchains
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# checkout location of this repository. this is a west workspace and thus
# .west will be located in `app/../.west`.
path: app
- name: Initialize workspace
working-directory: app
run: |
west init --local .
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows
- name: Cache dependencies
id: cache-vanilla-zephyr
uses: actions/cache@v4
with:
path: deps
key: cache-vanilla-zephyr-${{ hashFiles('app/west.yml') }}
- name: Update workspace
working-directory: app
run: |
west update -o=--depth=1 -n
- name: Build for nRF52840 development kit
working-directory: app
run: |
west build --board nrf52840dk_nrf52840 --pristine
- name: Build for STM32 Nucleo-64
working-directory: app
run: |
west build --board nucleo_f411re --pristine
#
# build job using an sdk-nrf west configuration
#
build-sdk-nrf:
# build using sdk-nrf, which includes zephyr as project.
runs-on: ubuntu-22.04
container: ghcr.io/zephyrproject-rtos/ci:v0.26.2
env:
CMAKE_PREFIX_PATH: /opt/toolchains
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: app
- name: Initialize workspace
working-directory: app
run: |
west init --local --mf west-sdk-nrf.yml .
- name: Cache dependencies
id: cache-sdk-nrf
uses: actions/cache@v4
with:
path: deps
key: cache-sdk-nrf-${{ hashFiles('app/west-sdk-nrf.yml') }}
- name: Update workspace
working-directory: app
run: |
west update -o=--depth=1 -n
- name: Build for nRF52840 development kit
working-directory: app
run: |
west build --board nrf52840dk_nrf52840 --pristine