forked from platisd/smartcar_shield
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.4 KB
/
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
name: Examples
on: [push, pull_request]
jobs:
build-examples:
runs-on: ubuntu-latest
strategy:
matrix:
board:
- platform: arduino:avr
name: uno
url: http://downloads.arduino.cc/packages/package_index.json
- platform: arduino:avr
name: mega
url: http://downloads.arduino.cc/packages/package_index.json
- platform: arduino:avr
name: leonardo
url: http://downloads.arduino.cc/packages/package_index.json
- platform: esp32:esp32
name: esp32doit-devkit-v1
url: https://dl.espressif.com/dl/package_esp32_index.json
- platform: esp8266:esp8266
name: d1_mini
url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
steps:
- uses: actions/checkout@v2
- name: Install PySerial (needed for ESP32 compilation)
run: pip3 install pyserial
- name: Compile library examples
uses: arduino/compile-sketches@main
with:
platforms: |
- name: ${{ matrix.board.platform }}
source-url: ${{ matrix.board.url }}
fqbn: ${{ matrix.board.platform }}:${{ matrix.board.name }}
libraries: |
- name: Servo
- name: ServoESP32
- name: ESP32 AnalogWrite
- name: Smartcar shield
source-path: "."