-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.46 KB
/
firmware-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
name: Automated firmware test
on: [workflow_dispatch, push]
concurrency:
group: firmware-test
jobs:
build:
runs-on: [self-hosted, firmware-builder]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: parse feature template
uses: cuchi/[email protected]
with:
template: src/config/feature_config.template.h.jinja
output_file: src/config/feature_config.template.h
- name: build firmware
run: |
make BLE_ROOT=../../../../ FAMILY=NRF51
- name: store firmware
uses: actions/upload-artifact@v3
with:
name: firmware-file
path: _build/nrf51822_xxac.hex
flash:
runs-on: [self-hosted, firmware-flasher]
needs: build
steps:
- name: download firmware
uses: actions/download-artifact@v3
with:
name: firmware-file
path: /tmp/nrf51_firmware
- name: flash firmware
working-directory: /home/home/Projects/BLEnky/openocd
run: src/openocd -s tcl -f raspi-bcm2385.tcl -f nrf51.cfg -c "program /tmp/nrf51_firmware/nrf51822_xxac.hex verify reset exit"
test:
runs-on: [self-hosted, firmware-flasher]
needs: flash
steps:
- uses: actions/checkout@v4
with:
repository: dakhnod/BLEnky-testing-kit
submodules: true
path: testing-kit
- name: run test script
run: python -u main.py -a "F2:B4:78:83:18:E1" -o 6 13 19 26 -i 12 16 20 21
working-directory: testing-kit