-
Notifications
You must be signed in to change notification settings - Fork 126
37 lines (33 loc) · 1.52 KB
/
build-rpipicow.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
name: Build for Raspberry Pi Pico W
on:
pull_request:
branches: [ master ]
paths:
- src/**
- examples/**
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
example: [examples/ACUnit, examples/AirQualitySensor/AirQualitySensor, examples/Blinds, examples/ContactSensor, examples/DimSwitch, examples/doorbell, examples/Fan, examples/GarageDoor, examples/Light/Light, examples/Lock/Lock, examples/Lock/Lock_with_feedback, examples/MotionSensor, examples/PowerSensor, examples/Relay/MultiRelays_advance, examples/Relay/Relay, examples/Speaker, examples/Switch/MultiSwitch_advance, examples/Switch/MultiSwitch_beginner, examples/Switch/MultiSwitch_intermediate, examples/Switch/Switch, examples/Thermostat, examples/TV, examples/Health]
steps:
- name: Step 1 - Checkout Repo
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Step 2 - Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Step 3 - Install dependencies
run: |
pip install -U https://github.com/platformio/platformio/archive/develop.zip
pio pkg install --global --platform https://github.com/maxgerhardt/platform-raspberrypi.git
- name: Step 4 - Install library dependencies
run: |
pio pkg install -l "bblanchon/ArduinoJson" -l "links2004/WebSockets" -g
- name: Step 5 - Run build test using PlatformIO
run: pio ci --lib="." -b rpipicow
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}