added format description to battery char #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |