-
-
Notifications
You must be signed in to change notification settings - Fork 18
65 lines (59 loc) · 1.73 KB
/
main.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Compile Examples
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
fqbn:
- arduino:avr:uno
- arduino:avr:nano:cpu=atmega168
- arduino:avr:nano:cpu=atmega328
- arduino:avr:mega:cpu=atmega1280
- arduino:avr:mega:cpu=atmega2560
- arduino:avr:leonardo
- arduino:samd:nano_33_iot
- arduino:megaavr:uno2018:mode=on
- arduino:mbed:nano33ble
- arduino:mbed_nano:nanorp2040connect
steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.fqbn }}
sketch-paths: |
- examples/AnalogAndVoltage
- examples/EEPROMCalibration
build-for-esp32:
runs-on: ubuntu-latest
strategy:
matrix:
fqbn:
- esp32:esp32:esp32
- esp32:esp32:esp32s3
- esp32:esp32:esp32c3
steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.fqbn }}
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
sketch-paths: |
- examples/AnalogAndVoltage
- examples/EEPROMCalibration
cli-compile-flags: |
- --warnings="none"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: arduino/arduino-lint-action@v1
with:
library-manager: update
compliance: specification