This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
72 lines (60 loc) · 1.6 KB
/
build_test.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
name: Build test
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: zephyrprojectrtos/ci:v0.26.5
env:
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.16.3
steps:
- uses: actions/checkout@v3
with:
path: modules/lib/golioth
- name: Init and update west
run: |
mkdir -p .west
cat <<EOF > .west/config
[manifest]
path = modules/lib/golioth
file = .ci-west-zephyr.yml
EOF
west update -o=--depth=1 -n
git config --global user.email [email protected]
git config --global user.name "Git User"
west patch
- name: Download binary blobs
run: |
west blobs fetch hal_espressif
- name: Run twister (non goliothd)
run: >
zephyr/scripts/twister
--no-clean
-e goliothd
-p esp32_devkitc_wroom
-p nrf52840dk_nrf52840
-p qemu_x86
-o reports/non_goliothd
-T modules/lib/golioth
- name: Run twister (goliothd)
run: >
zephyr/scripts/twister
--no-clean
-t goliothd -b
-p esp32_devkitc_wroom
-p nrf52840dk_nrf52840
-p qemu_x86
-o reports/goliothd
-T modules/lib/golioth
- name: Upload artifacts
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: twister-artifacts
path: |
reports/*
twister-out/**/*.log