-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 931 Bytes
/
arduino.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
name: Arduino Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
arduino-platform: ["arduino:avr", "esp32:esp32"]
include:
- arduino-platform: "arduino:avr"
fqbn: "arduino:avr:diecimila"
- arduino-platform: "esp32:esp32"
fqbn: "esp32:esp32:esp32"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Arduino CLI
uses: arduino/setup-arduino-cli@v1.1.2
- name: Create work directory
run: |
mkdir "$HOME/Arduino"
ln -s "$PWD" "$HOME/Arduino/FM-DX-Tuner"
- name: Install platform
run: |
arduino-cli core update-index
arduino-cli core install ${{ matrix.arduino-platform }}
- name: Compile Sketch
run: arduino-cli compile --fqbn ${{ matrix.fqbn }} "$HOME/Arduino/FM-DX-Tuner" --warnings more