Skip to content

Commit

Permalink
ci: add platformio build
Browse files Browse the repository at this point in the history
  • Loading branch information
GwnDaan committed Nov 10, 2023
1 parent 6fb8fd8 commit 5a586ff
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: PlatformIO CI

on: [push]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
example: [examples/virtual_terminal/esp32_platformio_object_pool]

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 PlatformIO examples
run: pio ci --lib="." --lib="${{ matrix.example }}" --board=denky32
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}
PLATFORMIO_BUILD_FLAGS: -I/include

0 comments on commit 5a586ff

Please sign in to comment.