Skip to content

Commit 88d2101

Browse files
authored
Add workflow for testing build examples
1 parent 157d26c commit 88d2101

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/examples.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Examples
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-18.04, windows-latest, macos-latest]
11+
python-version: [3.7]
12+
example:
13+
- "examples/gpio-blink"
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -U https://github.com/platformio/platformio/archive/develop.zip
25+
platformio platform install file://.
26+
- name: Build examples
27+
run: |
28+
platformio run -d ${{ matrix.example }}

0 commit comments

Comments
 (0)