-
Notifications
You must be signed in to change notification settings - Fork 32
47 lines (44 loc) · 1.18 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: CI
on:
- push
- pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: arduino/arduino-lint-action@v1
with:
compliance: strict
library-manager: update
project-type: library
build:
strategy:
matrix:
board:
- d1_mini
- esp32dev
include:
- board: esp32dev
platform_override:
- board: esp32dev
platform_override: https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install jq
run: sudo apt-get install -yq jq
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build examples
run: PLATFORM_OVERRIDE=${{ matrix.platform_override }} ./build_examples.sh ${{ matrix.board }}