-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (48 loc) · 1.41 KB
/
golioth_hello.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
name: Twister Golioth Hello
on:
# push:
# branches: [ main ]
# pull_request:
# schedule:
# - cron: "0 0 * * *"
workflow_dispatch:
jobs:
hello_world_on_hardware:
runs-on: [self-hosted, has-nrf52840dk]
env:
ZEPHYR_SDK_INSTALL_DIR: ${HOME}/zephyr-sdk-0.16.0
steps:
- uses: actions/checkout@v3
with:
path: app
- name: Install west
run: |
pip install wheel west
- name: Init and update west
run: |
mkdir -p .west
cat <<EOF > .west/config
[manifest]
path = app
file = west.yml
EOF
west update -o=--depth=1 -n
git config --global user.email user@git-scm.com
git config --global user.name "Git User"
west patch
- name: Pip dependencies
run: |
pip install -r deps/zephyr/scripts/requirements.txt
- name: Run Twister on Golioth Hello sample
run: |
source ${HOME}/env_runner_webinar_demo.sh
deps/zephyr/scripts/twister -T app -s sample.golioth.hello.psk.fast.default \
--device-testing --west-flash=--recover \
--hardware-map ${HOME}/hardware-map-webinar-demo.yml -vvv
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: twister-artifacts
path: |
twister-out/**/*.log