Skip to content

Commit c90fd6b

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 1a5021d commit c90fd6b

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/compile-examples.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
- name: Arduino_DebugUtils
2626
- name: ArduinoMqttClient
2727
# sketch paths to compile (recursive) for all boards
28-
UNIVERSAL_SKETCH_PATHS: '"examples/ArduinoIoTCloud-Advanced" "examples/ArduinoIoTCloud-Basic" "examples/utility/ArduinoIoTCloud_Travis_CI"'
28+
UNIVERSAL_SKETCH_PATHS: |
29+
- examples/ArduinoIoTCloud-Advanced
30+
- examples/ArduinoIoTCloud-Basic
31+
- examples/utility/ArduinoIoTCloud_Travis_CI
2932
ARDUINOCORE_MBED_STAGING_PATH: extras/ArduinoCore-mbed
3033
ARDUINOCORE_API_STAGING_PATH: extras/ArduinoCore-API
3134
SKETCHES_REPORTS_PATH: sketches-reports
@@ -58,7 +61,8 @@ jobs:
5861
- name: ArduinoECCX08
5962
- name: RTCZero
6063
- name: WiFi101
61-
sketch-paths: '"examples/utility/Provisioning"'
64+
sketch-paths: |
65+
- examples/utility/Provisioning
6266
# MKR WiFi 1010, Nano 33 IoT
6367
- board:
6468
type: "nina"
@@ -71,7 +75,9 @@ jobs:
7175
- name: WiFiNINA
7276
- name: Arduino_JSON
7377
- name: ArduinoBearSSL
74-
sketch-paths: '"examples/utility/Provisioning" "examples/utility/SelfProvisioning"'
78+
sketch-paths: |
79+
- examples/utility/Provisioning
80+
- examples/utility/SelfProvisioning
7581
# LoRaWAN boards
7682
- board:
7783
type: "wan"
@@ -91,7 +97,8 @@ jobs:
9197
- name: ArduinoECCX08
9298
- name: RTCZero
9399
- name: MKRGSM
94-
sketch-paths: '"examples/utility/Provisioning"'
100+
sketch-paths: |
101+
- examples/utility/Provisioning
95102
# NB boards
96103
- board:
97104
type: "nb"
@@ -101,7 +108,8 @@ jobs:
101108
- name: ArduinoECCX08
102109
- name: RTCZero
103110
- name: MKRNB
104-
sketch-paths: '"examples/utility/Provisioning"'
111+
sketch-paths: |
112+
- examples/utility/Provisioning
105113
# Portenta
106114
- board:
107115
type: "mbed"
@@ -113,7 +121,8 @@ jobs:
113121
name: arduino:mbed
114122
libraries: |
115123
- name: ArduinoECCX08
116-
sketch-paths: '"examples/utility/Provisioning"'
124+
sketch-paths: |
125+
- examples/utility/Provisioning
117126
# ESP8266 boards
118127
- board:
119128
type: "esp8266"
@@ -167,9 +176,10 @@ jobs:
167176
libraries: |
168177
${{ env.UNIVERSAL_LIBRARIES }}
169178
${{ matrix.libraries }}
170-
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.sketch-paths }}"
171-
size-report-sketch: 'ArduinoIoTCloud_Travis_CI'
172-
enable-size-deltas-report: 'true'
179+
sketch-paths: |
180+
${{ env.UNIVERSAL_SKETCH_PATHS }}
181+
${{ matrix.sketch-paths }}
182+
enable-deltas-report: 'true'
173183
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
174184

175185
- name: Write data to size trends report spreadsheet

0 commit comments

Comments
 (0)