forked from luisllamasbinaburo/Arduino-ReactiveArduino
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.28 KB
/
main.yml
File metadata and controls
37 lines (37 loc) · 1.28 KB
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: Platform IO CI
on: [push, pull_request]
jobs:
build:
name: Build Examples
runs-on: ubuntu-latest
strategy:
matrix:
pio-env: ['esp12e', 'esp32dev', 'uno', 'nanoatmega328']
example: [
'Blink/Blink.cpp',
'Do/Do.cpp',
'FromArray/FromArray.cpp',
'FromProperty/FromProperty.cpp',
'FromSerialPort/FromSerialPort.cpp',
'FromString/FromString.cpp',
'GlobalDefined/GlobalDefined.cpp',
'Reduce/Reduce.cpp',
'ThrottleExample/ThrottleExample.cpp',
'UltrasonicExample/UltrasonicExample.cpp',
'AccelerometerExample/AccelerometerExample.cpp',
'RotaryEncoderExample/RotaryEncoderExample.cpp',
'PIDTemperatureControl/PIDTemperatureControl.cpp',
'PIDMotorSpeedControl/PIDMotorSpeedControl.cpp',
'DistinctExample/DistinctExample.cpp'
]
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Install PlatformIO
run: python -m pip install platformio
- name: Build firmware
run: pio ci --lib="." --board ${{matrix.pio-env}} "examples/${{matrix.example}}"