-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1013 Bytes
/
build.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
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# example: [examples/*/*]
example: [examples/SpaSimple/SpaSimple, examples/SpaStatus/SpaStatus, examples/SpaSerialRemote/SpaSerialRemote, examples/SpaSerialRemoteI2c/SpaSerialRemoteI2c , examples/SpaHwCustom/SpaHwCustom, examples/SpaServerMqttClient/SpaServerMqttClient]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Step 6 - Run build examples using PlatformIO
run: pio ci --lib="." -b esp12e -b esp32dev -b lolin_s3 -c examples/platformio.ini
env:
PLATFORMIO_CI_SRC: ${{ matrix.example }}