Skip to content

Commit 9ac0c20

Browse files
committed
Build examples
1 parent 998e03e commit 9ac0c20

File tree

3 files changed

+43
-17
lines changed

3 files changed

+43
-17
lines changed

.github/workflows/platformio.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Test PlatformIO support
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
example:
17+
- examples/AnalogRead_DigitalRead/AnalogRead_DigitalRead.ino
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Cache
24+
uses: actions/cache@v3
25+
with:
26+
path: |
27+
~/.cache/pip
28+
~/.platformio/.cache
29+
key: ${{ runner.os }}-pio
30+
31+
- name: Install python
32+
uses: actions/setup-python@v4
33+
with:
34+
python-version: '3.10'
35+
36+
- name: Install PlatformIO Core
37+
run: pip install --upgrade platformio
38+
39+
- name: Build PlatformIO examples
40+
run: PIO ci --lib="." --board=uno --board=leonardo --board=sanguino_atmega1284p --board=megaatmega2560 ${{ matrix.example }}

.github/workflows/test.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Ignore .development file, https://arduino.github.io/arduino-cli/library-specification/#development-flag-file
22
.development
3+
4+
# Ignore CLion IDE folder
5+
.idea

0 commit comments

Comments
 (0)