-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (39 loc) · 1.32 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
45
46
47
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
ZEPHYR_VERSION: 3.6.0
BOARD: nrf52840dk_nrf52840
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize
run: |
cd /tmp/
west init --mr v$ZEPHYR_VERSION
west update -o=--depth=1 -n
- name: Build Uptime Sample
working-directory: /tmp/
run: |
west build $GITHUB_WORKSPACE/samples/uptime -b $BOARD --build-dir $GITHUB_WORKSPACE/samples/uptime/build
- name: Build Central
working-directory: /tmp/
run: |
west build $GITHUB_WORKSPACE/test/renode/uptime_central -b $BOARD --build-dir $GITHUB_WORKSPACE/test/renode/uptime_central/build
- name: Build posix
working-directory: /tmp/
run: |
west build $GITHUB_WORKSPACE/samples/uptime -b native_posix_64 --build-dir $GITHUB_WORKSPACE/samples/uptime/build_posix
- name : Upload Firmware
uses: actions/upload-artifact@v4
with:
path: |
samples/uptime/build/zephyr/zephyr.elf
samples/uptime/build_posix/zephyr/zephyr.exe
test/renode/uptime_central/build/zephyr/zephyr.elf