Skip to content

Commit 435ded3

Browse files
committed
Move from Travis-CI to GitHub Actions
1 parent 9ff5460 commit 435ded3

File tree

2 files changed

+39
-29
lines changed

2 files changed

+39
-29
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# documentation at https://docs.platformio.org/en/latest/integration/ci/github-actions.html
2+
3+
name: PlatformIO CI
4+
5+
on: [push]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
example: [examples/SSD1306UiDemo, examples/SSD1306SimpleDemo, examples/SSD1306DrawingDemo, examples/SSD1306OTADemo, examples/SSD1306ClockDemo, examples/SSD1306TwoScreenDemo]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Cache pip
18+
uses: actions/cache@v2
19+
with:
20+
path: ~/.cache/pip
21+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
22+
restore-keys: ${{ runner.os }}-pip-
23+
- name: Cache PlatformIO
24+
uses: actions/cache@v2
25+
with:
26+
path: ~/.platformio
27+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
28+
- name: Set up Python
29+
uses: actions/setup-python@v2
30+
- name: Install PlatformIO
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install --upgrade platformio
34+
- name: Install library dependencies
35+
run: pio lib -g install "paulstoffregen/Time@^1.6"
36+
- name: Run PlatformIO
37+
run: pio ci --lib="." --board=nodemcuv2
38+
env:
39+
PLATFORMIO_CI_SRC: ${{ matrix.example }}

.travis.yml

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

0 commit comments

Comments
 (0)