Skip to content

Commit d90341d

Browse files
committed
Added Arduino build CI workflow
1 parent 7873aa7 commit d90341d

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PlatformIO Arduino CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
example: [examples/arduino/basic_usage/src/main.cpp]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Cache pip
16+
uses: actions/cache@v2
17+
with:
18+
path: ~/.cache/pip
19+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
20+
restore-keys: ${{ runner.os }}-pip-
21+
- name: Cache PlatformIO
22+
uses: actions/cache@v2
23+
with:
24+
path: ~/.platformio
25+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
26+
- name: Set up Python
27+
uses: actions/setup-python@v2
28+
- name: Install PlatformIO
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install --upgrade platformio
32+
- name: Run PlatformIO
33+
run: pio ci --project-conf="examples/arduino/basic_usage/platformio.ini"
34+
env:
35+
PLATFORMIO_CI_SRC: ${{ matrix.example }}

0 commit comments

Comments
 (0)