Skip to content

Commit 81307bd

Browse files
authored
Merge pull request #16 from odriverobotics/platformio-ci
Add basic CI compile check using PlatformIO
2 parents ed9ae0b + e30808f commit 81307bd

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/platformio.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Reference: https://docs.platformio.org/en/stable/integration/ci/github-actions.html
2+
3+
name: PlatformIO CI
4+
5+
on:
6+
push:
7+
branches: [master]
8+
pull_request:
9+
branches: [master]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- uses: actions/cache@v4
18+
with:
19+
path: |
20+
~/.cache/pip
21+
~/.platformio/.cache
22+
key: ${{ runner.os }}-pio
23+
24+
- uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.9'
27+
28+
- name: Install PlatformIO Core
29+
run: pip install --upgrade platformio
30+
31+
- name: Run PlatformIO
32+
run: |
33+
pio ci --lib="." --project-conf platformio.ini examples/SineWaveCAN/SineWaveCAN.ino
34+
#pio ci --lib="." examples/SineWaveCAN/SineWaveCAN.ino

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44

55
# PlatformIO
66
/.pio
7+
8+
# OS files
9+
.DS_Store

0 commit comments

Comments
 (0)