-
Notifications
You must be signed in to change notification settings - Fork 78
27 lines (27 loc) · 886 Bytes
/
main.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
name: Platform IO CI
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install PlatformIO
run: python -m pip install platformio
- name: Build firmware
run: pio ci --lib=./ --exclude=assets --exclude=examples --exclude=boards --project-conf="examples/ci/platformio.ini" "examples/ci/main.cpp"
env:
PLATFORMIO_BOARDS_DIR: "${{github.workspace}}/boards"
PLATFORMIO_BUILD_FLAGS: -DLV_CONF_PATH="${{github.workspace}}/examples/ci/lv_conf.h"