-
Notifications
You must be signed in to change notification settings - Fork 13
35 lines (33 loc) · 1.36 KB
/
build-examples.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
name: PlatformIO CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: |
pip install --upgrade platformio
platformio platform install native
- name: Run unit test
run: platformio test -e native
- name: Build simple exemple
run: platformio ci --lib="." --board=ATmega328P --project-option="lib_deps=https://github.com/ngraziano/avr_stl.git" examples/simple
- name: Build simple sx1262 exemple
run: platformio ci --lib="." --board=ATmega328P --project-option="lib_deps=https://github.com/ngraziano/avr_stl.git" examples/simple_sx1262
- name: Build esp32 exemple
run: platformio ci --lib="." examples/esp32 --project-conf examples/esp32/platformio-ci.ini
- name: Build esp32 abp
run: platformio ci --lib="." examples/esp32-deepsleep-abp --project-conf examples/esp32-deepsleep-abp/platformio-ci.ini
# - name: Build rak811 exemple
# run: platformio ci --lib="." examples/rak811_gps --project-conf examples/rak811_gps/platformio-ci.ini