Skip to content

Commit bad4977

Browse files
committed
Use modern arduino/compile-sketches API
The original API of the `arduino/compile-sketches` GitHub Actions action used by the "smoke test" sketch compilation workflow was based on Bash array-style space separated lists. This could not to advanced use cases and so a new approach of defining the data structures in YAML documents and then passing those to the action inputs was settled on. At the time the workflow was written, this had not yet been implemented for the `sketch-paths` input. The old API is now deprecated and so the workflow is here updated to the new API.
1 parent 256ad33 commit bad4977

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

.github/workflows/compile-examples.yml

+40-40
Original file line numberDiff line numberDiff line change
@@ -58,30 +58,30 @@ jobs:
5858
- name: CapacitiveSensor
5959
6060
# Sketch paths to compile (recursive) for all boards
61-
UNIVERSAL_SKETCH_PATHS: >-
62-
"examples/01.Basics"
63-
"examples/02.Digital/BlinkWithoutDelay"
64-
"examples/02.Digital/Button"
65-
"examples/02.Digital/Debounce"
66-
"examples/02.Digital/DigitalInputPullup"
67-
"examples/02.Digital/StateChangeDetection"
68-
"examples/03.Analog"
69-
"examples/04.Communication/ASCIITable"
70-
"examples/04.Communication/Dimmer"
71-
"examples/04.Communication/Graph"
72-
"examples/04.Communication/Midi"
73-
"examples/04.Communication/PhysicalPixel"
74-
"examples/04.Communication/ReadASCIIString"
75-
"examples/04.Communication/SerialCallResponse"
76-
"examples/04.Communication/SerialCallResponseASCII"
77-
"examples/04.Communication/SerialEvent"
78-
"examples/04.Communication/VirtualColorMixer"
79-
"examples/05.Control"
80-
"examples/06.Sensors/ADXL3xx"
81-
"examples/06.Sensors/Knock"
82-
"examples/07.Display"
83-
"examples/08.Strings"
84-
"examples/11.ArduinoISP"
61+
UNIVERSAL_SKETCH_PATHS: |
62+
- examples/01.Basics
63+
- examples/02.Digital/BlinkWithoutDelay
64+
- examples/02.Digital/Button
65+
- examples/02.Digital/Debounce
66+
- examples/02.Digital/DigitalInputPullup
67+
- examples/02.Digital/StateChangeDetection
68+
- examples/03.Analog
69+
- examples/04.Communication/ASCIITable
70+
- examples/04.Communication/Dimmer
71+
- examples/04.Communication/Graph
72+
- examples/04.Communication/Midi
73+
- examples/04.Communication/PhysicalPixel
74+
- examples/04.Communication/ReadASCIIString
75+
- examples/04.Communication/SerialCallResponse
76+
- examples/04.Communication/SerialCallResponseASCII
77+
- examples/04.Communication/SerialEvent
78+
- examples/04.Communication/VirtualColorMixer
79+
- examples/05.Control
80+
- examples/06.Sensors/ADXL3xx
81+
- examples/06.Sensors/Knock
82+
- examples/07.Display
83+
- examples/08.Strings
84+
- examples/11.ArduinoISP
8585
8686
strategy:
8787
fail-fast: false
@@ -153,43 +153,43 @@ jobs:
153153
- name: Keyboard
154154
- name: Mouse
155155
# Compile these sketches in addition to the ones defined by env.UNIVERSAL_SKETCH_PATHS
156-
usb-sketch-paths: >-
157-
"examples/09.USB"
156+
usb-sketch-paths: |
157+
- examples/09.USB
158158
- board:
159159
usb: false
160160
usb-libraries: ""
161161
usb-sketch-paths: ""
162162
- board:
163163
# Boards with a Serial1 port
164164
serial1: true
165-
serial1-sketch-paths: >-
166-
"examples/04.Communication/MultiSerial"
167-
"examples/04.Communication/SerialPassthrough"
165+
serial1-sketch-paths: |
166+
- examples/04.Communication/MultiSerial
167+
- examples/04.Communication/SerialPassthrough
168168
- board:
169169
serial1: false
170170
serial1-sketch-paths: ""
171171
- board:
172172
starter-kit: true
173-
starter-kit-sketch-paths: >-
174-
"examples/10.StarterKit_BasicKit"
173+
starter-kit-sketch-paths: |
174+
- examples/10.StarterKit_BasicKit
175175
- board:
176176
starter-kit: false
177177
starter-kit-sketch-paths: ""
178178
- board:
179179
tone: true
180-
tone-sketch-paths: >-
181-
"examples/02.Digital/toneKeyboard"
182-
"examples/02.Digital/toneMelody"
183-
"examples/02.Digital/toneMultiple"
184-
"examples/02.Digital/tonePitchFollower"
180+
tone-sketch-paths: |
181+
- examples/02.Digital/toneKeyboard
182+
- examples/02.Digital/toneMelody
183+
- examples/02.Digital/toneMultiple
184+
- examples/02.Digital/tonePitchFollower
185185
- board:
186186
tone: false
187187
tone-sketch-paths: ""
188188
- board:
189189
pulsein: true
190-
pulsein-sketch-paths: >-
191-
"examples/06.Sensors/Memsic2125"
192-
"examples/06.Sensors/Ping"
190+
pulsein-sketch-paths: |
191+
- examples/06.Sensors/Memsic2125
192+
- examples/06.Sensors/Ping
193193
- board:
194194
pulsein: false
195195
pulsein-sketch-paths: ""
@@ -205,7 +205,7 @@ jobs:
205205
libraries: |
206206
${{ env.UNIVERSAL_LIBRARIES }}
207207
${{ matrix.usb-libraries }}
208-
sketch-paths: >-
208+
sketch-paths: |
209209
${{ env.UNIVERSAL_SKETCH_PATHS }}
210210
${{ matrix.usb-sketch-paths }}
211211
${{ matrix.serial1-sketch-paths }}

0 commit comments

Comments
 (0)