-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.34 KB
/
SketchWorker.yml
File metadata and controls
43 lines (34 loc) · 1.34 KB
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
name: Embedded Sketch Worker
on:
push:
paths:
- 'Externals/Sketch/NodeSketch_SC/*.cpp'
- 'Externals/Sketch/NodeSketch_SC/*.ino'
- 'Externals/Sketch/NodeSketch_SC/*.h'
pull_request:
paths:
- 'Externals/Sketch/NodeSketch_SC/*.cpp'
- 'Externals/Sketch/NodeSketch_SC/*.ino'
- 'Externals/Sketch/NodeSketch_SC/*.h'
jobs:
ESPBuildWorker:
name: NodeMCU Sketch Build Worker
runs-on: ubuntu-latest
strategy:
matrix:
include:
- mcu_candidate_fqbn: esp8266:esp8266:nodemcuv2
mcu_platform_candidate: esp8266:esp8266
mcu_platform_sketch: Externals/Sketch/NodeSketch_SC/NodeSketch_SC.ino
boardAdditionals: https://arduino.esp8266.com/stable/package_esp8266com_index.json
steps:
- name: Stage 1 | Repository Checkout
uses: actions/checkout@master
- name: Stage 2 | Arduino-CLI Setup
uses: arduino/setup-arduino-cli@master
- name: Stage 3 | ESP8266 Package Setup
run : |
arduino-cli core update-index --additional-urls ${{ matrix.boardAdditionals }}
arduino-cli core install ${{ matrix.mcu_platform_candidate }} --additional-urls ${{ matrix.boardAdditionals }}
- name: Final Stage (4) | Sketch Verification
run: arduino-cli compile --fqbn ${{ matrix.mcu_candidate_fqbn }} ${{ matrix.mcu_platform_sketch }}