Skip to content

feat(firmware): 新增采集模式以支持 Edge Impulse 采集 #2

feat(firmware): 新增采集模式以支持 Edge Impulse 采集

feat(firmware): 新增采集模式以支持 Edge Impulse 采集 #2

Workflow file for this run

name: Firmware CI
on:
push:
paths:
- 'firmware/**'
- '.github/workflows/firmware-ci.yml'
- '!firmware/**/README.md'
- '!firmware/README.md'
pull_request:
paths:
- 'firmware/**'
- '.github/workflows/firmware-ci.yml'
- '!firmware/**/README.md'
- '!firmware/README.md'
permissions:
contents: read
jobs:
build:
name: Firmware Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Cache PlatformIO
uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-platformio-${{ hashFiles('firmware/platformio.ini', 'firmware/src/**', 'firmware/lib/**', 'firmware/include/**') }}
restore-keys: |
${{ runner.os }}-platformio-
- name: Install PlatformIO
run: python -m pip install --upgrade platformio
- name: Build firmware
run: python -m platformio run -d firmware