Skip to content

Commit fd83c56

Browse files
committed
Use modern API of arduino/compile-sketches CI action
Since the time the "Compile Examples" workflow was written, some improvements have been made to the API of the `arduino/compile-sketches` CI action. The previous API is still supported, but is deprecated and warnings are displayed in the workflow run log about this, which could result in confusion for contributors.
1 parent cd006c3 commit fd83c56

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/compile-examples.yml

+23-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424

2525
env:
2626
# sketch paths to compile (recursive) compatible with all boards
27-
UNIVERSAL_SKETCH_PATHS: '"libraries/Scheduler"'
27+
UNIVERSAL_SKETCH_PATHS: |
28+
- libraries/Scheduler
2829
SKETCHES_REPORTS_PATH: sketches-reports
2930

3031
strategy:
@@ -40,13 +41,27 @@ jobs:
4041
include:
4142
- board:
4243
fqbn: arduino:mbed:nano33ble
43-
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
44+
additional-sketch-paths: |
45+
- libraries/PDM
46+
- libraries/ThreadDebug
4447
- board:
4548
fqbn: arduino:mbed:envie_m4
46-
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_Video"'
49+
additional-sketch-paths: |
50+
- libraries/doom
51+
- libraries/KernelDebug
52+
- libraries/Portenta_SDCARD
53+
- libraries/Portenta_Video
4754
- board:
4855
fqbn: arduino:mbed:envie_m7
49-
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_System" "libraries/Portenta_Video" "libraries/ThreadDebug" "libraries/USBHOST" "libraries/WiFi"'
56+
additional-sketch-paths: |
57+
- libraries/doom
58+
- libraries/KernelDebug
59+
- libraries/Portenta_SDCARD
60+
- libraries/Portenta_System
61+
- libraries/Portenta_Video
62+
- libraries/ThreadDebug
63+
- libraries/USBHOST
64+
- libraries/WiFi
5065
5166
steps:
5267
- name: Checkout repository
@@ -73,9 +88,11 @@ jobs:
7388
# Overwrite the Board Manager installation with the local platform
7489
- source-path: "./"
7590
name: "arduino:mbed"
76-
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.additional-sketch-paths }}"
91+
sketch-paths: |
92+
${{ env.UNIVERSAL_SKETCH_PATHS }}
93+
${{ matrix.additional-sketch-paths }}
7794
verbose: 'false'
78-
enable-size-deltas-report: true
95+
enable-deltas-report: true
7996
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
8097

8198
- name: Save memory usage change report as artifact

0 commit comments

Comments
 (0)