Skip to content

Commit

Permalink
Switch Travis with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
a7md0 authored Aug 22, 2023
1 parent 95d3fea commit 90be1ff
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 44 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: [[esp32dev, examples/WakeOnLan-ESP32/WakeOnLan-ESP32.ino], [nodemcuv2, examples/WakeOnLan-ESP8266/WakeOnLan-ESP8266.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 --lib="." --board=${{ matrix.example[0] }}
env:
PLATFORMIO_CI_SRC: ${{ matrix.example[1] }}
44 changes: 0 additions & 44 deletions .travis.yml

This file was deleted.

0 comments on commit 90be1ff

Please sign in to comment.