-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.46 KB
/
compile_examples.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
48
49
50
name: Compile Examples
on: [push, pull_request]
jobs:
build-arduino:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
libraries: |
- source-path: ./
sketch-paths:
./examples/AM2302-Sensor_Example/AM2302-Sensor_Example.ino
./examples/AM2302_sensor_health_check//AM2302_sensor_health_check.ino
./examples/Arduino_Nano_AM2302_Sensor_Array_Example/Arduino_Nano_AM2302_Sensor_Array_Example.ino
build-esp8266:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[esp8266]')
strategy:
fail-fast: false
matrix:
board:
- fqbn: esp8266:esp8266:nodemcu
- fqbn: esp8266:esp8266:d1_mini
core:
- version: 3.1.2
- version: 3.0.2
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Compile ESP8266 examples
uses: arduino/compile-sketches@v1
with:
platforms: |
- name: esp8266:esp8266
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
version: ${{ matrix.core.version }}
fqbn: ${{ matrix.board.fqbn }}
libraries: |
- source-path: ./
sketch-paths:
./examples/Wemos_D1_mini_AM2302_Sensor_Array_Example/Wemos_D1_mini_AM2302_Sensor_Array_Example.ino