-
Notifications
You must be signed in to change notification settings - Fork 30
91 lines (74 loc) · 2.38 KB
/
arduino-checks.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This is a basic workflow to help you get started with Actions for Arduino library projects
name: Arduino Library Checks
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
branches: [develop,master]
pull_request:
branches: [develop,master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
# Run every Tuesday at 6 AM UTC to catch breakage caused by new rules added to Arduino Lint or changes in the tools.
- cron: "0 6 * * TUE"
jobs:
# This defines a job for checking the Arduino library format specifications
# see <https://github.com/marketplace/actions/arduino-arduino-lint-action>
lint:
name: check library format
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
# Arduino - lint
- name: Arduino-lint
uses: arduino/arduino-lint-action@v1
with:
compliance: strict
library-manager: update
verbose: false
# These jobs are used to compile the examples for the specific processor/board.
# see <https://github.com/marketplace/actions/compile-arduino-sketches>
compile-uno:
name: compile uno examples
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
# Compile Examples for UNO
- name: Compile examples on uno
uses: arduino/compile-sketches@v1
with:
verbose: true
fqbn: arduino:avr:uno
sketch-paths: |
- 'examples/RDMSerialRecv'
compile-leonardo:
needs: compile-uno
name: compile leonardo examples
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: Compile for leonardo
uses: arduino/compile-sketches@v1
with:
verbose: true
fqbn: arduino:avr:leonardo
sketch-paths: |
- 'examples/RDMSerialRecv'
compile-mega:
needs: compile-uno
name: compile examples for mega
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
- name: Compile for mega
uses: arduino/compile-sketches@v1
with:
verbose: true
fqbn: arduino:avr:mega
sketch-paths: |
- 'examples/RDMSerialRecv'