-
-
Notifications
You must be signed in to change notification settings - Fork 204
243 lines (232 loc) · 8.6 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
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-examples:
runs-on: ubuntu-latest
env:
# sketch paths to compile (recursive) compatible with all boards
UNIVERSAL_SKETCH_PATHS: |
- libraries/Scheduler
SKETCHES_REPORTS_PATH: sketches-reports
strategy:
fail-fast: false
matrix:
board:
- fqbn: arduino:mbed:nano33ble
id: nano33ble
- fqbn: arduino:mbed:envie_m7
id: envie_m7
- fqbn: arduino:mbed:envie_m7:target_core=cm4
id: envie_m7_core_cm4
- fqbn: arduino:mbed:nanorp2040connect
id: nanorp2040connect
- fqbn: arduino:mbed:nicla_sense
id: nicla_sense
- fqbn: arduino:mbed:nicla_vision
id: nicla_vision
- fqbn: arduino:mbed:opta
id: opta
- fqbn: arduino:mbed:giga
id: giga
- fqbn: arduino:mbed:nicla_voice
id: nicla_voice
- fqbn: arduino:mbed:edge_control
id: edge_control
# compile only the examples compatible with each board
include:
- board:
fqbn: arduino:mbed:nano33ble
additional-libraries: |
- name: ArduinoBLE
additional-sketch-paths: |
- libraries/PDM
- libraries/ThreadDebug
- libraries/USBHID
- libraries/USBMSD/examples/Nano33BLE_FlashMassStorage
- ~/Arduino/libraries/ArduinoBLE
- board:
fqbn: arduino:mbed:envie_m7:target_core=cm4
additional-sketch-paths: |
- libraries/KernelDebug
- libraries/Portenta_SDCARD
- libraries/Portenta_SDRAM
- libraries/RPC
- board:
fqbn: arduino:mbed:envie_m7
additional-libraries: |
- name: lvgl
version: 8.3.5
- name: MicroNMEA
- name: ArduinoBLE
- name: ArduinoGraphics
- name: Arduino_GigaDisplayTouch
- name: emWin
- name: Arduino_DebugUtils
additional-sketch-paths: |
- libraries/PDM
- libraries/doom
- libraries/KernelDebug
- libraries/MCUboot
- libraries/Camera/examples/CameraCaptureRawBytes
- libraries/Camera/examples/CameraMotionDetect
- libraries/Portenta_SDCARD
- libraries/Portenta_SDRAM
- libraries/STM32H747_System
- libraries/Arduino_H7_Video
- libraries/RPC
- libraries/ThreadDebug
- libraries/USBHID
- libraries/USBHOST
- libraries/USBMSD/examples/AccessFlashAsUSBDisk
- libraries/WiFi
- libraries/GSM
- ~/Arduino/libraries/ArduinoBLE
- board:
fqbn: arduino:mbed:nanorp2040connect
additional-libraries: |
- name: ArduinoBLE
- name: STM32duino LSM6DSOX
additional-sketch-paths: |
- libraries/MLC/examples/RP2040_DataLogger_FIFO
- libraries/PDM
- libraries/USBHID
- ~/Arduino/libraries/WiFiNINA
- ~/Arduino/libraries/ArduinoBLE
- board:
fqbn: arduino:mbed:nicla_sense
additional-sketch-paths: |
- libraries/Nicla_System
- ~/Arduino/libraries/Arduino_BHY2
additional-libraries: |
- name: Arduino_BHY2
- name: ArduinoBLE
- name: PacketSerial
- board:
fqbn: arduino:mbed:nicla_vision
additional-sketch-paths: |
- libraries/PDM
- libraries/Camera/examples/CameraCaptureRawBytes
- libraries/Camera/examples/CameraCaptureZoomPan
- libraries/SE05X
- libraries/STM32H747_System
- libraries/ThreadDebug
- libraries/USBHID
- libraries/USBHOST
- libraries/USBMSD/examples/AccessFlashAsUSBDisk
- libraries/WiFi
- board:
fqbn: arduino:mbed:opta
additional-sketch-paths: |
- libraries/Ethernet
- libraries/STM32H747_System
- libraries/ThreadDebug
- libraries/USBHID
- libraries/USBMSD/examples/AccessFlashAsUSBDisk
- libraries/WiFi
- board:
fqbn: arduino:mbed:giga
additional-libraries: |
- name: lvgl
version: 8.3.5
- name: MicroNMEA
- name: ArduinoBLE
- name: ArduinoGraphics
- name: Arduino_GigaDisplayTouch
- name: arducam_dvp
- name: emWin
additional-sketch-paths: |
- libraries/PDM
- libraries/MCUboot
- libraries/Camera/examples/CameraCaptureRawBytes
- libraries/Camera/examples/CameraMotionDetect
- libraries/Camera/examples/GigaCameraDisplay
- libraries/Portenta_SDCARD
- libraries/Portenta_SDRAM
- libraries/Arduino_H7_Video
- libraries/RPC
- libraries/ThreadDebug
- libraries/USBHID
- libraries/USBHOST
- libraries/USBMSD/examples/AccessFlashAsUSBDisk
- libraries/WiFi
- ~/Arduino/libraries/ArduinoBLE
- board:
fqbn: arduino:mbed:nicla_voice
additional-sketch-paths: |
- libraries/Nicla_System
- libraries/NDP
additional-libraries: |
- name: Arduino_BHY2
- name: ArduinoBLE
- name: arduino-audio-tools
source-url: https://github.com/pschatzmann/arduino-audio-tools.git
version: v0.9.6
- name: arduino-libg722
source-url: https://github.com/pschatzmann/arduino-libg722.git
- board:
fqbn: arduino:mbed:edge_control
additional-libraries: |
- name: MicroNMEA
- name: Arduino_DebugUtils
additional-sketch-paths: |
- libraries/GSM
- libraries/USBHID
- libraries/USBMSD/examples/Nano33BLE_FlashMassStorage
- libraries/ThreadDebug
steps:
- name: Checkout repository
uses: actions/checkout@v4
# 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@v4
with:
repository: arduino/ArduinoCore-API
path: ArduinoCore-API
- name: Install ArduinoCore-API
run: mv "$GITHUB_WORKSPACE/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
- name: Compile examples
uses: arduino/compile-sketches@v1
with:
cli-compile-flags: |
# Use build path containing spaces to check for path quoting problems in compilation patterns
- --build-path
- ${{ runner.temp }}/path with spaces
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.board.fqbn }}
libraries: |
- name: WiFiNINA
${{ matrix.additional-libraries }}
platforms: |
# Use Board Manager to install the latest release of Arduino mbed Boards to get the toolchain
- name: "arduino:mbed"
# Overwrite the Board Manager installation with the local platform
- source-path: "./"
name: "arduino:mbed"
sketch-paths: |
${{ env.UNIVERSAL_SKETCH_PATHS }}
${{ matrix.additional-sketch-paths }}
verbose: 'false'
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
- name: Save memory usage change report as artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: ${{ env.SKETCHES_REPORTS_PATH }}-${{ matrix.board.id }}