-
Notifications
You must be signed in to change notification settings - Fork 148
505 lines (493 loc) · 30.5 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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
name: Compile Examples
on:
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "megaavr/libraries/**"
- "megaavr/cores/**"
- "megaavr/variants/**"
- "megaavr/*.txt"
push:
paths:
- ".github/workflows/compile-examples.yml"
- "megaavr/libraries/**"
- "megaavr/cores/**"
- "megaavr/variants/**"
- "megaavr/*.txt"
# workflow_dispatch event allows the workflow to be triggered manually
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
workflow_dispatch:
# repository_dispatch event allows the workflow to be triggered via the GitHub API
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch
repository_dispatch:
jobs:
compile-examples:
runs-on: ubuntu-latest
env:
platform-name: megaTinyCore:megaavr
bootloader-optiboot-o-flash-7_5kB-plus-true-sketch-paths: |
- megaavr/libraries/Optiboot_flasher/examples/Flash_put_get
available-flash-7_5kB-plus-true-sketch-paths: |
- megaavr/libraries/EEPROM/examples/eeprom_get
- megaavr/libraries/USERSIG/examples/usersig_get
- megaavr/libraries/SPI/examples/BarometricPressureSensor
- megaavr/libraries/SoftwareSerial/examples/TwoPortReceive
- megaavr/libraries/Wire/examples/SFRRanger_reader
- megaavr/libraries/tinyNeoPixel/examples/RGBWstrandtest
- megaavr/extras/CompileTestSketches/test_analog_read
- megaavr/libraries/Wire/examples/slave_address_mask
- megaavr/libraries/Wire/examples/master_multi_address_write
available-flash-7_5kB-plus-true-1620only-sketch-paths: |
- megaavr/libraries/megaTinyCore/examples/megaTinyTuner
available-flash-4kB-plus-true-sketch-paths: |
- megaavr/libraries/SoftwareSerial/examples/SoftwareSerialExample
available-flash-3_5kB-plus-true-sketch-paths: |
- megaavr/libraries/EEPROM/examples/eeprom_crc
- megaavr/libraries/EEPROM/examples/eeprom_put
- megaavr/libraries/EEPROM/examples/eeprom_read
- megaavr/libraries/USERSIG/examples/usersig_crc
- megaavr/libraries/USERSIG/examples/usersig_put
- megaavr/libraries/USERSIG/examples/usersig_read
- megaavr/libraries/Wire/examples/digital_potentiometer
- megaavr/libraries/Wire/examples/slave_write
- megaavr/libraries/Wire/examples/slave_read
- megaavr/libraries/Wire/examples/master_and_slave
- megaavr/libraries/Wire/examples/master_write
- megaavr/libraries/Wire/examples/master_read
- megaavr/libraries/Wire/examples/slave_secondary_address
- megaavr/libraries/megaTinyCore/examples/ModernRevSer
- megaavr/libraries/megaTinyCore/examples/readTempVcc
- megaavr/libraries/megaTinyCore/examples/ErsatzReset
- megaavr/libraries/megaTinyCore/examples/ErsatzReset_2
- megaavr/libraries/tinyNeoPixel/examples/buttoncycler
- megaavr/libraries/tinyNeoPixel/examples/simple
- megaavr/libraries/tinyNeoPixel/examples/strandtest
- megaavr/libraries/tinyNeoPixel_Static/examples/buttoncycler
- megaavr/libraries/tinyNeoPixel_Static/examples/strandtest
available-flash-2kB-plus-true-sketch-paths: |
- megaavr/extras/CompileTestSketches/test_digital_io
- megaavr/extras/CompileTestSketches/test_macros
available-flash-1_5kB-plus-true-sketch-paths: |
- megaavr/libraries/EEPROM/examples/eeprom_clear
- megaavr/libraries/EEPROM/examples/eeprom_iteration
- megaavr/libraries/EEPROM/examples/eeprom_update
- megaavr/libraries/EEPROM/examples/eeprom_write
- megaavr/libraries/USERSIG/examples/usersig_clear
- megaavr/libraries/USERSIG/examples/usersig_iteration
- megaavr/libraries/USERSIG/examples/usersig_update
- megaavr/libraries/USERSIG/examples/usersig_write
- megaavr/libraries/Logic/examples/Three_input_AND
- megaavr/libraries/Logic/examples/Modulate
- megaavr/libraries/Logic/examples/Oscillate
- megaavr/libraries/Logic/examples/LatchNoSeq
- megaavr/libraries/SPI/examples/DigitalPotControl
- megaavr/libraries/tinyNeoPixel_Static/examples/simple
- megaavr/extras/CompileTestSketches/timing/test_millis_micros
free-TCB-flash-3.5kB-plus-true-sketch-paths: |
- megaavr/extras/CompileTestSketches/timing/test_tone
- megaavr/libraries/Servo/examples/Knob
- megaavr/libraries/Servo/examples/ServoMaxTest
- megaavr/libraries/Servo/examples/Sweep
- megaavr/libraries/Servo_megaTinyCore/examples/Knob
- megaavr/libraries/Servo_megaTinyCore/examples/ServoMaxTest
- megaavr/libraries/Servo_megaTinyCore/examples/Sweep
- megaavr/libraries/Comparator/examples/Hysteresis
- megaavr/libraries/Comparator/examples/Internal_reference
- megaavr/libraries/Comparator/examples/Interrupt
- megaavr/libraries/Comparator/examples/Simple_comparator
- megaavr/libraries/Event/examples/Simple_event
IO-class-6-plus-true-sketch-paths: |
- megaavr/libraries/Logic/examples/Five_input_NOR
IO-class-2-series-1-sketch-paths: |
- megaavr/libraries/megaTinyCore/examples/TCA0Demo3
Series-1-available-flash-16kB-plus-true-1620only-sketch-paths: |
- megaavr/libraries/megaTinyCore/examples/SelfTuning
Series-2-available-flash-16kB-plus-true-1620only-sketch-paths: |
- megaavr/libraries/megaTinyCore/examples/SelfTuning
strategy:
fail-fast: false
matrix:
flash-class:
- 32
- 16
- 8
- 4
- 2
peripheral-class:
- 2
- 1
- 0
IO-class:
- 7
- 6
- 4
- 2
bootloader-series:
- y
- 2
bootloader-code:
-
- o
# Filter out these matrix combinations
exclude:
- flash-class: 32
peripheral-class: 0
- flash-class: 32
IO-class: 4
- flash-class: 32
IO-class: 2
- flash-class: 16
IO-class: 2
- flash-class: 8
IO-class: 2
- flash-class: 4
peripheral-class: 0
IO-class: 7
- flash-class: 2
IO-class: 7
- flash-class: 2
IO-class: 6
- flash-class: 2
peripheral-class: 2
- IO-class: 2
peripheral-class: 2
- peripheral-class: 2
bootloader-code: o
bootloader-series: y
- peripheral-class: 2
bootloader-code:
bootloader-series: 2
- peripheral-class: 1
bootloader-series: 2
- peripheral-class: 0
bootloader-series: 2
include:
- flash-class: 32
bootloader-code:
available-flash-kB: 32
bootloader-series: y
- flash-class: 32
bootloader-code: o
available-flash-kB: 31.5
- flash-class: 16
bootloader-code:
available-flash-kB: 16
bootloader-series: y
- flash-class: 16
bootloader-code: o
available-flash-kB: 15.5
- flash-class: 8
bootloader-code:
available-flash-kB: 8
bootloader-series: y
- flash-class: 8
bootloader-code: o
available-flash-kB: 7.5
- flash-class: 4
bootloader-code:
available-flash-kB: 4
bootloader-series: y
- flash-class: 4
bootloader-code: o
available-flash-kB: 3.5
- flash-class: 2
bootloader-code:
available-flash-kB: 2
bootloader-series: y
- flash-class: 2
bootloader-code: o
available-flash-kB: 1.5
steps:
- name: Checkout repository
uses: actions/checkout@v2
# See: https://github.com/arduino/compile-sketches/README.md
- name: Compile examples (all default)
uses: arduino/compile-sketches@main
with:
cli-version: 0.33.0
fqbn: ${{ env.platform-name }}:atx${{ matrix.bootloader-series}}${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }},wiremode=mors,attach=allenabled,PWMmux=default
sketch-paths: |
# It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format
${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-7_5kB-plus-{0}-1620only-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }}
${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }}
${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }}
${{ env[format('free-TCB-flash-3.5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('bootloader-optiboot-{0}-flash-7_5kB-plus-{1}-sketch-paths', matrix.bootloader-code, (matrix.available-flash-kB >= 7.5))] }}
${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }}
${{ env[format('IO-class-{0}-series-{1}-sketch-paths', matrix.IO-class, matrix.peripheral-class)] }}
${{ env[format('Series-{0}-available-flash-16kB-plus-{1}-1620only-sketch-paths', matrix.peripheral-class, matrix.available-flash-kB >= 15.5)] }}
platforms: |
# Install megaTinyCore via Boards Manager for the toolchain
- source-url: http://drazzy.com/package_drazzy.com_index.json
name: ${{ env.platform-name }}
# Overwrite the megaTinyCore release version with the platform from the local path
- source-path: megaavr
name: ${{ env.platform-name }}
libraries: |
# The sketches don't have any external library dependencies, so just define an empty array
-
verbose: false
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
sketches-report-path: sketches-reports
- name: Compile examples (disable millis)
uses: arduino/compile-sketches@main
with:
cli-version: 0.33.0
fqbn: ${{ env.platform-name }}:atx${{ matrix.bootloader-series}}${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }},millis=disabled,wiremode=mands,attach=manual,PWMmux=buffered
sketch-paths: |
# It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format
${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-7_5kB-plus-{0}-1620only-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }}
${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }}
${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }}
${{ env[format('free-TCB-flash-3.5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('bootloader-optiboot-{0}-flash-7_5kB-plus-{1}-sketch-paths', matrix.bootloader-code, matrix.available-flash-kB >= 7.5)] }}
${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }}
${{ env[format('IO-class-{0}-series-{1}-sketch-paths', matrix.IO-class, matrix.peripheral-class)] }}
${{ env[format('Series-{0}-available-flash-16kB-plus-{1}-1620only-sketch-paths', matrix.peripheral-class, matrix.available-flash-kB >= 15.5)] }}
platforms: |
# Install megaTinyCore via Boards Manager for the toolchain
- source-url: http://drazzy.com/package_drazzy.com_index.json
name: ${{ env.platform-name }}
# Overwrite the megaTinyCore release version with the platform from the local path
- source-path: megaavr
name: ${{ env.platform-name }}
libraries: |
# The sketches don't have any external library dependencies, so just define an empty array
-
verbose: false
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
sketches-report-path: sketches-reports
- name: Compile examples (TCB0 millis)
uses: arduino/compile-sketches@main
with:
cli-version: 0.33.0
fqbn: ${{ env.platform-name }}:atx${{ matrix.bootloader-series}}${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }},millis=timerb0,wiremode=mors,attach=manual,PWMmux=I3
sketch-paths: |
# It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format
${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-7_5kB-plus-{0}-1620only-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }}
${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }}
${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }}
${{ env[format('free-TCB-flash-3.5kB-plus-{0}-sketch-paths', (matrix.available-flash-kB >= 3.5 && (matrix.peripheral-class == 2 || (matrix.peripheral-class == 1 && matrix.available-flash-kB >= 15.5))))] }}
${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }}
platforms: |
# Install megaTinyCore via Boards Manager for the toolchain
- source-url: http://drazzy.com/package_drazzy.com_index.json
name: ${{ env.platform-name }}
# Overwrite the megaTinyCore release version with the platform from the local path
- source-path: megaavr
name: ${{ env.platform-name }}
libraries: |
# The sketches don't have any external library dependencies, so just define an empty array
-
verbose: false
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
sketches-report-path: sketches-reports
- name: Compile examples (RTC millis)
uses: arduino/compile-sketches@main
with:
fqbn: ${{ env.platform-name }}:atx${{ matrix.bootloader-series}}${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }},millis=rtc,wiremode=mands,attach=allenabled,PWMmux=buffered
sketch-paths: |
# It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format
${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-7_5kB-plus-{0}-1620only-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }}
${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }}
${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }}
${{ env[format('free-TCB-flash-3.5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('bootloader-optiboot-{0}-flash-7_5kB-plus-{1}-sketch-paths', matrix.bootloader-code, matrix.available-flash-kB >= 7.5)] }}
${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }}
${{ env[format('IO-class-{0}-series-{1}-sketch-paths', matrix.IO-class, matrix.peripheral-class)] }}
${{ env[format('Series-{0}-available-flash-16kB-plus-{1}-1620only-sketch-paths', matrix.peripheral-class, matrix.available-flash-kB >= 15.5)] }}
platforms: |
# Install megaTinyCore via Boards Manager for the toolchain
- source-url: http://drazzy.com/package_drazzy.com_index.json
name: ${{ env.platform-name }}
# Overwrite the megaTinyCore release version with the platform from the local path
- source-path: megaavr
name: ${{ env.platform-name }}
libraries: |
# The sketches don't have any external library dependencies, so just define an empty array
-
verbose: false
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
sketches-report-path: sketches-reports
- name: Compile examples (default millis, 8 MHz)
uses: arduino/compile-sketches@main
with:
cli-version: 0.33.0
fqbn: ${{ env.platform-name }}:atx${{ matrix.bootloader-series}}${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }},clock${{ matrix.bootloader-code }}=8internal,wiremode=mors,attach=oldversion,PWMmux=I3
sketch-paths: |
# It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format
${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }}
${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }}
${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }}
${{ env[format('bootloader-optiboot-{0}-flash-7_5kB-plus-{1}-sketch-paths', matrix.bootloader-code, matrix.available-flash-kB >= 7.5)] }}
${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }}
${{ env[format('IO-class-{0}-series-{1}-sketch-paths', matrix.IO-class, matrix.peripheral-class)] }}
platforms: |
# Install megaTinyCore via Boards Manager for the toolchain
- source-url: http://drazzy.com/package_drazzy.com_index.json
name: ${{ env.platform-name }}
# Overwrite the megaTinyCore release version with the platform from the local path
- source-path: megaavr
name: ${{ env.platform-name }}
libraries: |
# The sketches don't have any external library dependencies, so just define an empty array
-
verbose: false
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
sketches-report-path: sketches-reports
- name: Compile examples (default millis, clock 25 MHz internal, tuned)
uses: arduino/compile-sketches@main
with:
cli-version: 0.33.0
fqbn: ${{ env.platform-name }}:atx${{ matrix.bootloader-series}}${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }},clock${{ matrix.bootloader-code }}=25internaltuned,wiremode=mors,attach=oldversion,PWMmux=buffered
sketch-paths: |
# It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format
${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }}
${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }}
${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }}
${{ env[format('free-TCB-flash-3.5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('bootloader-optiboot-{0}-flash-7_5kB-plus-{1}-sketch-paths', matrix.bootloader-code, matrix.available-flash-kB >= 7.5)] }}
${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }}
${{ env[format('IO-class-{0}-series-{1}-sketch-paths', matrix.IO-class, matrix.peripheral-class)] }}
platforms: |
# Install megaTinyCore via Boards Manager for the toolchain
- source-url: http://drazzy.com/package_drazzy.com_index.json
name: ${{ env.platform-name }}
# Overwrite the megaTinyCore release version with the platform from the local path
- source-path: megaavr
name: ${{ env.platform-name }}
libraries: |
# The sketches don't have any external library dependencies, so just define an empty array
-
verbose: false
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
sketches-report-path: sketches-reports
- name: Compile examples (default millis, clock 24 MHz external)
uses: arduino/compile-sketches@main
with:
fqbn: ${{ env.platform-name }}:atx${{ matrix.bootloader-series}}${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }},clock${{ matrix.bootloader-code }}=24extclock,wiremode=mors,attach=oldversion,PWMmux=default
sketch-paths: |
# It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format
${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }}
${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }}
${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }}
${{ env[format('free-TCB-flash-3.5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('bootloader-optiboot-{0}-flash-7_5kB-plus-{1}-sketch-paths', matrix.bootloader-code, matrix.available-flash-kB >= 7.5)] }}
${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }}
${{ env[format('IO-class-{0}-series-{1}-sketch-paths', matrix.IO-class, matrix.peripheral-class)] }}
platforms: |
# Install megaTinyCore via Boards Manager for the toolchain
- source-url: http://drazzy.com/package_drazzy.com_index.json
name: ${{ env.platform-name }}
# Overwrite the megaTinyCore release version with the platform from the local path
- source-path: megaavr
name: ${{ env.platform-name }}
libraries: |
# The sketches don't have any external library dependencies, so just define an empty array
-
verbose: false
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
sketches-report-path: sketches-reports
- name: Compile examples (default millis, clock 8 MHz internal, tuned)
uses: arduino/compile-sketches@main
with:
cli-version: 0.33.0
fqbn: ${{ env.platform-name }}:atx${{ matrix.bootloader-series}}${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }},clock${{ matrix.bootloader-code }}=8internaltuned,wiremode=mors,attach=oldversion,PWMmux=default
sketch-paths: |
# It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format
${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }}
${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }}
${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }}
${{ env[format('free-TCB-flash-3.5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('bootloader-optiboot-{0}-flash-7_5kB-plus-{1}-sketch-paths', matrix.bootloader-code, matrix.available-flash-kB >= 7.5)] }}
${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }}
${{ env[format('IO-class-{0}-series-{1}-sketch-paths', matrix.IO-class, matrix.peripheral-class)] }}
platforms: |
# Install megaTinyCore via Boards Manager for the toolchain
- source-url: http://drazzy.com/package_drazzy.com_index.json
name: ${{ env.platform-name }}
# Overwrite the megaTinyCore release version with the platform from the local path
- source-path: megaavr
name: ${{ env.platform-name }}
libraries: |
# The sketches don't have any external library dependencies, so just define an empty array
-
verbose: false
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
sketches-report-path: sketches-reports
- name: Compile examples (default millis, clock 1 MHz internal, tuned)
uses: arduino/compile-sketches@main
with:
cli-version: 0.33.0
fqbn: ${{ env.platform-name }}:atx${{ matrix.bootloader-series}}${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }},clock${{ matrix.bootloader-code }}=1internaltuned,wiremode=mors,attach=oldversion,PWMmux=default
sketch-paths: |
# It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths
# https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format
${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }}
${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }}
${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }}
${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }}
${{ env[format('free-TCB-flash-3.5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }}
${{ env[format('bootloader-optiboot-{0}-flash-7_5kB-plus-{1}-sketch-paths', matrix.bootloader-code, matrix.available-flash-kB >= 7.5)] }}
${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }}
${{ env[format('IO-class-{0}-series-{1}-sketch-paths', matrix.IO-class, matrix.peripheral-class)] }}
platforms: |
# Install megaTinyCore via Boards Manager for the toolchain
- source-url: http://drazzy.com/package_drazzy.com_index.json
name: ${{ env.platform-name }}
# Overwrite the megaTinyCore release version with the platform from the local path
- source-path: megaavr
name: ${{ env.platform-name }}
libraries: |
# The sketches don't have any external library dependencies, so just define an empty array
-
verbose: false
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
sketches-report-path: sketches-reports