Skip to content

Commit 15e1b3e

Browse files
committed
PIO ESPIDF example Github Action CI
1 parent ba713d3 commit 15e1b3e

File tree

1 file changed

+35
-0
lines changed

1 file 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 ESP-IDF CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
example: [examples/espidf/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/espidf/basic_usage/platformio.ini"
34+
env:
35+
PLATFORMIO_CI_SRC: ${{ matrix.example }}

0 commit comments

Comments
 (0)