Update CI workflow to use esp32dev environment for consistency #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}}" |