Skip to content

Commit e30808f

Browse files
committed
add platformio.yaml
1 parent bab07b0 commit e30808f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-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

0 commit comments

Comments
 (0)