Skip to content

Commit 2d49919

Browse files
authored
Merge pull request #123 from hectorespert/test_workflow
2 parents c98079f + 4336641 commit 2d49919

File tree

3 files changed

+54
-23
lines changed

3 files changed

+54
-23
lines changed

.github/workflows/platformio.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
- examples/ArrayQueue/ArrayQueue.ino
19+
- examples/Assert/Assert.ino
20+
- examples/Blink_AnalogRead/Blink_AnalogRead.ino
21+
- examples/IntegerQueue/IntegerQueue.ino
22+
- examples/Interrupts/Interrupts.ino
23+
- examples/Mutex/Mutex.ino
24+
- examples/Notifications/Notifications.ino
25+
- examples/StructArray/StructArray.ino
26+
- examples/StructQueue/StructQueue.ino
27+
- examples/TaskStatus/TaskStatus.ino
28+
- examples/TaskUtilities/TaskUtilities.ino
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v3
33+
34+
- name: Cache
35+
uses: actions/cache@v3
36+
with:
37+
path: |
38+
~/.cache/pip
39+
~/.platformio/.cache
40+
key: ${{ runner.os }}-pio
41+
42+
- name: Install python
43+
uses: actions/setup-python@v4
44+
with:
45+
python-version: '3.10'
46+
47+
- name: Install PlatformIO Core
48+
run: pip install --upgrade platformio
49+
50+
- name: Build PlatformIO examples
51+
run: pio ci --lib="." --board=uno --board=leonardo --board=sanguino_atmega1284p --board=megaatmega2560 ${{ matrix.example }}

.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

.travis.yml

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

0 commit comments

Comments
 (0)