Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfain authored Oct 26, 2024
1 parent cdf7058 commit 0b513b1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PlatformIO CI

on: [push]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
example: [examples/Bluetooth/PS3SPP/PS3SPP.ino, examples/pl2303/pl2303_gps/pl2303_gps.ino]

steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio

# - name: Download external library
# run: |
# wget https://github.com/xxxajk/spi4teensy3/archive/master.zip -O /tmp/spi4teensy3.zip
# unzip /tmp/spi4teensy3.zip -d /tmp

- name: Run PlatformIO
run: pio ci --lib="." --lib="/tmp/esp32" --board=uno --board=esp32doit-devkit-v1 --board=esp32doit-devkit-v1-bldc
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}

0 comments on commit 0b513b1

Please sign in to comment.