Skip to content

Commit db1cde0

Browse files
per1234manchoz
authored andcommitted
Use YAML list for the compile-sketches sketch-paths input
Support for this format has been added since the workflow was written. This format makes the workflow easier to read and maintain.
1 parent a10b21c commit db1cde0

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/compile-examples.yml

Lines changed: 22 additions & 5 deletions
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
2930
strategy:
3031
fail-fast: false
@@ -39,13 +40,27 @@ jobs:
3940
include:
4041
- board:
4142
fqbn: arduino:mbed:nano33ble
42-
additional-sketch-paths: '"libraries/PDM" "libraries/ThreadDebug"'
43+
additional-sketch-paths: |
44+
- libraries/PDM
45+
- libraries/ThreadDebug
4346
- board:
4447
fqbn: arduino:mbed:envie_m4
45-
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_Video"'
48+
additional-sketch-paths: |
49+
- libraries/doom
50+
- libraries/KernelDebug
51+
- libraries/Portenta_SDCARD
52+
- libraries/Portenta_Video
4653
- board:
4754
fqbn: arduino:mbed:envie_m7
48-
additional-sketch-paths: '"libraries/doom" "libraries/KernelDebug" "libraries/Portenta_SDCARD" "libraries/Portenta_System" "libraries/Portenta_Video" "libraries/ThreadDebug" "libraries/USBHOST" "libraries/WiFi"'
55+
additional-sketch-paths: |
56+
- libraries/doom
57+
- libraries/KernelDebug
58+
- libraries/Portenta_SDCARD
59+
- libraries/Portenta_System
60+
- libraries/Portenta_Video
61+
- libraries/ThreadDebug
62+
- libraries/USBHOST
63+
- libraries/WiFi
4964
5065
steps:
5166
- name: Checkout repository
@@ -72,7 +87,9 @@ jobs:
7287
# Overwrite the Board Manager installation with the local platform
7388
- source-path: "./"
7489
name: "arduino:mbed"
75-
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.additional-sketch-paths }}"
90+
sketch-paths: |
91+
${{ env.UNIVERSAL_SKETCH_PATHS }}
92+
${{ matrix.additional-sketch-paths }}
7693
verbose: 'false'
7794
enable-size-deltas-report: true
7895

0 commit comments

Comments
 (0)