Skip to content

Commit

Permalink
Create PlatformIO.yml
Browse files Browse the repository at this point in the history
Create CI
  • Loading branch information
a7md0 authored Aug 22, 2023
1 parent b5a86a7 commit 23af597
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/PlatformIO.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PlatformIO CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
example: [examples/WakeOnLan-ESP32/WakeOnLan-ESP32.ino, examples/WakeOnLan-ESP8266/WakeOnLan-ESP8266.ino, examples/WakeOnLan-ESP32-Ethernet/WakeOnLan-ESP32-Ethernet.ino]

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: Build examples
run: pio ci --board=esp32dev --board=nodemcuv2 --board=esp32dev
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}

0 comments on commit 23af597

Please sign in to comment.