-
-
Notifications
You must be signed in to change notification settings - Fork 725
270 lines (257 loc) · 10.8 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
name: Compile Examples
on:
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "cores/**"
- "libraries/**"
- "variants/**"
- "boards.txt"
- "platform.txt"
push:
paths:
- ".github/workflows/compile-examples.yml"
- "cores/**"
- "libraries/**"
- "variants/**"
- "boards.txt"
- "platform.txt"
jobs:
compile-test:
runs-on: ubuntu-latest
env:
# sketch paths to compile (recursive) for all boards
UNIVERSAL_SKETCH_PATHS: |
- extras/examples
- libraries/Wire
- libraries/USBHost
- libraries/SPI
- libraries/SFU/examples/SFU_LoadBinary
- libraries/SAMD_AnalogCorrection
- ~/Arduino/libraries/Servo/examples
- ~/Arduino/libraries/LiquidCrystal/examples
- ~/Arduino/libraries/Ethernet/examples
- ~/Arduino/libraries/SD/examples
- ~/Arduino/libraries/WiFi/examples
- ~/Arduino/libraries/Arduino_LSM9DS1/examples
- ~/Arduino/libraries/Arduino_JSON/examples
- ~/Arduino/libraries/MFRC522/examples/ChangeUID
- ~/Arduino/libraries/MFRC522/examples/DumpInfo
- ~/Arduino/libraries/MFRC522/examples/FixBrickedUID
- ~/Arduino/libraries/MFRC522/examples/MifareClassicValueBlock
- ~/Arduino/libraries/MFRC522/examples/MinimalInterrupt
- ~/Arduino/libraries/MFRC522/examples/Ntag216_AUTH
- ~/Arduino/libraries/MFRC522/examples/RFID-Cloner
- ~/Arduino/libraries/MFRC522/examples/ReadAndWrite
- ~/Arduino/libraries/MFRC522/examples/ReadNUID
- ~/Arduino/libraries/MFRC522/examples/ReadUidMultiReader
- ~/Arduino/libraries/MFRC522/examples/firmware_check
- ~/Arduino/libraries/MFRC522/examples/rfid_default_keys
- ~/Arduino/libraries/MFRC522/examples/rfid_read_personal_data
- ~/Arduino/libraries/MFRC522/examples/rfid_write_personal_data
- ~/Arduino/libraries/WiFi101/examples
strategy:
fail-fast: false
matrix:
board: [
{"fqbn": "arduino:samd:arduino_zero_edbg", "type": "usb", "WAN": "false"},
{"fqbn": "arduino:samd:arduino_zero_native", "type": "usb", "WAN": "false"},
{"fqbn": "arduino:samd:mkr1000", "type": "usb", "WAN": "false"},
{"fqbn": "arduino:samd:mkrzero", "type": "usb", "WAN": "false"},
{"fqbn": "arduino:samd:mkrwifi1010", "type": "mkrWiFi1010", "WAN": "false"},
{"fqbn": "arduino:samd:nano_33_iot", "type": "nano33IoT", "WAN": "false"},
{"fqbn": "arduino:samd:mkrfox1200", "type": "usb", "WAN": "false"},
{"fqbn": "arduino:samd:mkrwan1300", "type": "usb", "WAN": "true"},
{"fqbn": "arduino:samd:mkrwan1310", "type": "mkrwan1310", "WAN": "true"},
{"fqbn": "arduino:samd:mkrgsm1400", "type": "usb", "WAN": "false"},
{"fqbn": "arduino:samd:mkrnb1500", "type": "mkrNB1500", "WAN": "false"},
{"fqbn": "arduino:samd:mkrvidor4000", "type": "vidor", "WAN": "false"},
{"fqbn": "arduino:samd:adafruit_circuitplayground_m0", "type": "adafruit_playg", "WAN": "false"},
{"fqbn": "arduino:samd:mzero_pro_bl_dbg", "type": "mzero", "WAN": "false"},
{"fqbn": "arduino:samd:mzero_pro_bl", "type": "mzero", "WAN": "false"},
{"fqbn": "arduino:samd:mzero_bl", "type": "mzero", "WAN": "false"},
{"fqbn": "arduino:samd:tian", "type": "tian", "WAN": "false"}
]
# make board type-specific customizations to the matrix jobs
include:
# Normal USB boards with all the general libraries
- board:
type: "usb"
additional-sketch-paths: |
- ~/Arduino/libraries/Firmata/examples/StandardFirmataPlus
- ~/Arduino/libraries/Firmata/examples/StandardFirmataEthernet
- ~/Arduino/libraries/Firmata/examples/StandardFirmata
- ~/Arduino/libraries/Firmata/examples/SimpleDigitalFirmata
- ~/Arduino/libraries/Firmata/examples/SimpleAnalogFirmata
- ~/Arduino/libraries/Firmata/examples/ServoFirmata
- ~/Arduino/libraries/Firmata/examples/EchoString
- ~/Arduino/libraries/Firmata/examples/AnalogFirmata
- ~/Arduino/libraries/Firmata/examples/AllInputsFirmata
- libraries/I2S/examples
- libraries/SDU/examples
# Vidor board
- board:
type: "vidor"
additional-sketch-paths: |
- libraries/SAMD_BootloaderUpdater/examples
- libraries/I2S/examples
- ~/Arduino/libraries/VidorPeripherals/examples
# mkrwifi1010
- board:
type: "mkrWiFi1010"
additional-sketch-paths: |
- libraries/I2S/examples
- libraries/SDU/examples
- ~/Arduino/libraries/WiFiNINA/examples
# mkrnb1500 boards
- board:
type: "mkrNB1500"
additional-sketch-paths: |
- libraries/I2S/examples
- libraries/SDU/examples
- ~/Arduino/libraries/MKRNB/examples
# nano_33_iot
- board:
type: "nano33IoT"
additional-sketch-paths: |
- libraries/I2S/examples
- ~/Arduino/libraries/WiFiNINA/examples
# mkrwan1310
- board:
type: "mkrwan1310"
additional-sketch-paths: |
- libraries/I2S/examples
# adafruit_cicrcuitplayground board
- board:
type: "adafruit_playg"
additional-sketch-paths: |
- libraries/SDU/examples
# mzero boards
- board:
type: "mzero"
additional-sketch-paths: |
- ~/Arduino/libraries/Firmata/examples/StandardFirmataPlus
- ~/Arduino/libraries/Firmata/examples/StandardFirmataEthernet
- ~/Arduino/libraries/Firmata/examples/StandardFirmata
- ~/Arduino/libraries/Firmata/examples/SimpleDigitalFirmata
- ~/Arduino/libraries/Firmata/examples/SimpleAnalogFirmata
- ~/Arduino/libraries/Firmata/examples/ServoFirmata
- ~/Arduino/libraries/Firmata/examples/EchoString
- ~/Arduino/libraries/Firmata/examples/AnalogFirmata
- ~/Arduino/libraries/Firmata/examples/AllInputsFirmata
- libraries/SDU/examples
# tian board
- board:
type: "tian"
additional-sketch-paths: |
- ~/Arduino/libraries/Firmata/examples/StandardFirmataPlus
- ~/Arduino/libraries/Firmata/examples/StandardFirmataEthernet
- ~/Arduino/libraries/Firmata/examples/StandardFirmata
- ~/Arduino/libraries/Firmata/examples/SimpleDigitalFirmata
- ~/Arduino/libraries/Firmata/examples/SimpleAnalogFirmata
- ~/Arduino/libraries/Firmata/examples/ServoFirmata
- ~/Arduino/libraries/Firmata/examples/EchoString
- ~/Arduino/libraries/Firmata/examples/AnalogFirmata
- ~/Arduino/libraries/Firmata/examples/AllInputsFirmata
# MKRGSM1400 board
- board:
fqbn: "arduino:samd:mkrgsm1400"
mkrgsm1400-sketch-paths: |
- ~/Arduino/libraries/MKRGSM/examples
# MKRWAN board
- board:
WAN: "true"
wan-sketch-paths: |
- ~/Arduino/libraries/MKRWAN/examples
steps:
- name: Checkout repository
uses: actions/checkout@v2
# The source files are in a subfolder of the ArduinoCore-API repository, so it's not possible to clone it directly to the final destination in the core
- name: Checkout ArduinoCore-API
uses: actions/checkout@v2
with:
repository: arduino/ArduinoCore-API
path: extras/ArduinoCore-API
- name: Check if API should be compiled in the core
id: checkapi
run: |
if [[ $(grep -r api platform.txt) ]]; then echo "::set-output name=IS_API::true"; fi
- name: Install ArduinoCore-API
run: mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
if: steps.checkapi.outputs.IS_API == 'true'
- name: Checkout Basic examples
uses: actions/checkout@v2
with:
repository: arduino/arduino-examples
path: extras
- name: Compile examples
uses: arduino/compile-sketches@main
with:
fqbn: ${{ matrix.board.fqbn }}
libraries: |
- source-url: https://github.com/arduino-libraries/WiFi101.git
- name: MFRC522
- name: Arduino_MKRMEM
- name: FlashStorage
- name: Keyboard
- name: Mouse
- name: Servo
- name: LiquidCrystal
- name: CapacitiveSensor
- name: Ethernet
- name: ArduinoBearSSL
- name: Arduino_APDS9960
- name: Arduino_LSM9DS1
- name: ArduinoHttpClient
- name: NTPClient
- name: TFT
- name: ArduinoMqttClient
- name: Arduino_CRC32
- name: Arduino_LSM6DS3
- name: Stepper
- name: SD
- name: Arduino_JSON
- name: Arduino_HTS221
- name: Firmata
- name: ArduinoMotorCarrier
- name: ArduinoCloudThing
- name: Arduino_DebugUtils
- name: WiFi Link
- name: Arduino_LPS22HB
- name: CTC GO MOTIONS
- name: ArduinoModbus
- name: ArduinoIoTCloudBearSSL
- name: ArduinoDMX
- name: ArduinoRS485
- name: Arduino_OAuth
- name: CTC GO CORE
- name: WiFi
- name: Bridge
- name: Temboo
- name: ArduinoIoTCloud
- name: Madgwick
- name: MKRGSM
- name: MKRNB
- name: LoRa
- name: MKRWAN
- name: WiFiNINA
- source-url: https://github.com/vidor-libraries/VidorPeripherals.git
platforms: |
# Use Board Manager to install the latest release of Arduino SAMD Boards to get the toolchain
- name: "arduino:samd"
# Overwrite the Board Manager installation with the local platform
- source-path: "./"
name: "arduino:samd"
sketch-paths: |
${{ env.UNIVERSAL_SKETCH_PATHS }}
${{ matrix.additional-sketch-paths }}
${{ matrix.mkrgsm1400-sketch-paths }}
${{ matrix.wan-sketch-paths }}
enable-deltas-report: 'true'
verbose: 'false'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Save memory usage change report as artifact
uses: actions/upload-artifact@v3
with:
name: sketches-reports
path: sketches-reports