-
Notifications
You must be signed in to change notification settings - Fork 86
262 lines (253 loc) · 9.43 KB
/
compile-provisioning.yml
File metadata and controls
262 lines (253 loc) · 9.43 KB
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
name: Compile Provisioning
on:
pull_request:
paths:
- ".github/workflows/compile-provisioning.yml"
- "examples/**"
- "src/**"
push:
paths:
- ".github/workflows/compile-provisioning.yml"
- "examples/**"
- "src/**"
jobs:
build:
runs-on: ubuntu-latest
env:
# libraries to install for all boards
UNIVERSAL_LIBRARIES: |
# Install the ArduinoIoTCloud library from the repository
- source-path: ./
- name: ArduinoHttpClient
version: 0.6.1
- name: Arduino_DebugUtils
version: 1.4.0
- name: ArduinoMqttClient
version: 0.1.8
- name: Arduino_KVStore
version: 1.0.0
- source-url: https://github.com/pennam/Arduino_ConnectionHandler.git
version: 0f0f4a4ce718fcf2066a092a92cc2fdcd4d8bedd
- name: Arduino_SecureElement
version: 0.4.0
- name: Arduino_CloudUtils
version: 1.1.1
- source-url: https://github.com/arduino-libraries/Arduino_UniqueHWId.git
version: 7e1bfeb586cac00f043c39997a1e9937ed8152b0
- source-url: https://github.com/arduino-libraries/Arduino_NetworkConfigurator.git
version: 3499628000f2b652e856db406e4e02140bf267a6
# sketch paths to compile (recursive) for all boards
UNIVERSAL_SKETCH_PATHS: |
- examples/utility/Provisioning_2.0
SKETCHES_REPORTS_PATH: sketches-reports
strategy:
fail-fast: false
matrix:
board:
- fqbn: arduino:samd:mkrwifi1010
type: nina
artifact-name-suffix: arduino-samd-mkrwifi1010
- fqbn: arduino:samd:nano_33_iot
type: nina
artifact-name-suffix: arduino-samd-nano_33_iot
- fqbn: arduino:mbed_portenta:envie_m7:split=100_0
type: mbed_portenta
artifact-name-suffix: arduino-mbed_portenta-envie_m7
- fqbn: arduino:mbed_nano:nanorp2040connect
type: nina
artifact-name-suffix: arduino-mbed_nano-nanorp2040connect
- fqbn: arduino:mbed_nicla:nicla_vision
type: mbed_nicla
artifact-name-suffix: arduino-mbed_nicla-nicla_vision
- fqbn: arduino:mbed_opta:opta
type: mbed_opta
artifact-name-suffix: arduino-mbed_opta-opta
- fqbn: arduino:mbed_giga:giga
type: mbed_giga
artifact-name-suffix: arduino-mbed_giga-giga
- fqbn: arduino:renesas_portenta:portenta_c33
type: renesas_portenta
artifact-name-suffix: arduino-renesas_portenta-portenta_c33
- fqbn: arduino:renesas_uno:unor4wifi
type: renesas_uno
artifact-name-suffix: arduino-renesas_uno-unor4wifi
# make board type-specific customizations to the matrix jobs
include:
# MKR WiFi 1010, Nano 33 IoT, Nano RP2040 Connect
- board:
type: nina
platforms: |
# Install samd and mbed_nano platform via Boards Manager
- name: arduino:samd
version: 1.8.14
- name: arduino:mbed_nano
version: 4.3.1
libraries: |
- name: RTCZero
version: 1.6.0
- name: ArduinoECCX08
version: 1.3.9
- name: Adafruit SleepyDog Library
version: 1.6.5
- name: ArduinoBearSSL
version: 1.7.6
- source-url: https://github.com/pennam/WiFiNINA.git
version: b9a8d705f85fef8c19862c32e314367d4bba5734
- source-url: https://github.com/arduino-libraries/SpiNINA.git
version: 4c8f2956b1b9cd421583393421c6c9276ba27614
- source-url: https://github.com/pennam/ArduinoBLE.git
version: 5915fa2df776e6eb7e9e5afd896ed3d1c048c9c0
# Portenta
- board:
type: mbed_portenta
platforms: |
# Install mbed_portenta platform via Boards Manager
- name: arduino:mbed_portenta
version: 4.3.1
libraries: |
- source-url: https://github.com/pennam/Arduino_Cellular.git
version: bfbd25791d200b113d640e16eed43ce547ab0b0c
- name: ArduinoECCX08
version: 1.3.9
- name: StreamDebugger
version: 1.0.1
- name: TinyGsm
version: 0.12.0
- name: ArduinoBearSSL
version: 1.7.6
- name: ArduinoBLE
version: 1.4.0
# Nicla Vision
- board:
type: mbed_nicla
platforms: |
# Install mbed_nicla platform via Boards Manager
- name: arduino:mbed_nicla
version: 4.3.1
libraries: |
- name: ArduinoBLE
version: 1.4.0
# Opta
- board:
type: mbed_opta
platforms: |
# Install mbed_opta platform via Boards Manager
- name: arduino:mbed_opta
version: 4.3.1
libraries: |
- name: ArduinoECCX08
version: 1.3.9
- name: ArduinoBearSSL
version: 1.7.6
- name: ArduinoBLE
version: 1.4.0
# GIGA
- board:
type: mbed_giga
platforms: |
# Install mbed_giga platform via Boards Manager
- name: arduino:mbed_giga
version: 4.3.1
libraries: |
- name: ArduinoECCX08
version: 1.3.9
- name: ArduinoBearSSL
version: 1.7.6
- name: ArduinoBLE
version: 1.4.0
# Portenta C33
- board:
type: renesas_portenta
platforms: |
# Install renesas_portenta platform via Boards Manager
- name: arduino:renesas_portenta
version: 1.4.1
libraries: |
- source-url: https://github.com/pennam/Arduino_Cellular.git
version: bfbd25791d200b113d640e16eed43ce547ab0b0c
- name: StreamDebugger
version: 1.0.1
- name: TinyGsm
version: 0.12.0
- name: ArduinoBLE
version: 1.4.0
# UNO R4 WiFi
- board:
type: renesas_uno
platforms: |
# Install renesas_uno platform via Boards Manager
- name: arduino:renesas_uno
version: 1.4.1
libraries: |
- name: ArduinoBLE
version: 1.4.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Clear cache
run: |
rm -rf ~/.cache
- name: Compile production provisioning sketch
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
platforms: ${{ matrix.platforms }}
fqbn: ${{ matrix.board.fqbn }}
libraries: |
${{ env.UNIVERSAL_LIBRARIES }}
${{ matrix.libraries }}
sketch-paths: |
${{ env.UNIVERSAL_SKETCH_PATHS }}
${{ matrix.sketch-paths }}
enable-deltas-report: "false"
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
cli-compile-flags: |
- --clean
- --verbose
- --output-dir
- ${{ runner.temp }}/provisioning-prod
- name: Compile staging provisioning sketch
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
platforms: ${{ matrix.platforms }}
fqbn: ${{ matrix.board.fqbn }}
libraries: |
${{ env.UNIVERSAL_LIBRARIES }}
${{ matrix.libraries }}
sketch-paths: |
${{ env.UNIVERSAL_SKETCH_PATHS }}
${{ matrix.sketch-paths }}
enable-deltas-report: "false"
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
cli-compile-flags: |
- --clean
- --verbose
- --build-property
- "compiler.cpp.extra_flags=-DCOMPILE_TEST=1"
- --output-dir
- ${{ runner.temp }}/provisioning-staging
- name: Write data to size trends report spreadsheet
# Update report on every push to the master branch
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: arduino/report-size-trends@main
with:
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
google-key-file: ${{ secrets.GOOGLE_KEY_FILE }}
spreadsheet-id: 1I6NZkpZpf8KugBkE92adB1Z3_b7ZepOpCdYTOigJpN4
- name: Save memory usage change report as artifact
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
path: ${{ env.SKETCHES_REPORTS_PATH }}
- name: Save production artifact
uses: actions/upload-artifact@v4
with:
name: provisioning-prod-${{ matrix.board.artifact-name-suffix }}
path: ${{ runner.temp }}/provisioning-prod/
- name: Save staging artifact
uses: actions/upload-artifact@v4
with:
name: provisioning-staging-${{ matrix.board.artifact-name-suffix }}
path: ${{ runner.temp }}/provisioning-staging/