30 lines
853 B
YAML
30 lines
853 B
YAML
name: PlatformIO CI
|
|
|
|
on: [push,pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
example: [example/SerialExample,example/TFT_Rainbow,example/arduino_gfx_demo,example/factory,example/lv_demos,example/nes,example/nes/data,example/ota,example/sd,example/tft,example/touch_test,example/usb_hid_pad]
|
|
|
|
steps:
|
|
- 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
|
|
|
|
- name: Run PlatformIO
|
|
run: pio ci --board=esp32-c3-devkitm-1
|
|
env:
|
|
PLATFORMIO_CI_SRC: ${{ matrix.example }} |