Skip to content

Update CI workflow to use esp32dev environment for consistency #33

Update CI workflow to use esp32dev environment for consistency

Update CI workflow to use esp32dev environment for consistency #33

Workflow file for this run

name: Platform IO CI
on: [push, pull_request]
jobs:
build:
name: Build Examples
runs-on: ubuntu-latest
env:
pio-env: 'esp32dev'
strategy:
matrix:
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 ${{env.pio-env}} "examples/${{matrix.example}}"