Skip to content

Commit

Permalink
Add GitHub Actions CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mzyy94 committed Jan 28, 2024
1 parent e8dbedc commit 5f5c81e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PlatformIO CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
example:
- examples/hello_world
- examples/touch_button
- examples/dial_number

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 run --project-dir ${{ matrix.example }}

0 comments on commit 5f5c81e

Please sign in to comment.