Skip to content

Commit 16f13b3

Browse files
authored
Merge pull request #207 from per1234/update-actions
Use sketch compilation CI actions from their new dedicated repositories
2 parents 561c64a + c90fd6b commit 16f13b3

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

.github/workflows/compile-examples.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ 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
34+
SKETCHES_REPORTS_PATH: sketches-reports
3135

3236
strategy:
3337
fail-fast: false
@@ -57,7 +61,8 @@ jobs:
5761
- name: ArduinoECCX08
5862
- name: RTCZero
5963
- name: WiFi101
60-
sketch-paths: '"examples/utility/Provisioning"'
64+
sketch-paths: |
65+
- examples/utility/Provisioning
6166
# MKR WiFi 1010, Nano 33 IoT
6267
- board:
6368
type: "nina"
@@ -70,7 +75,9 @@ jobs:
7075
- name: WiFiNINA
7176
- name: Arduino_JSON
7277
- name: ArduinoBearSSL
73-
sketch-paths: '"examples/utility/Provisioning" "examples/utility/SelfProvisioning"'
78+
sketch-paths: |
79+
- examples/utility/Provisioning
80+
- examples/utility/SelfProvisioning
7481
# LoRaWAN boards
7582
- board:
7683
type: "wan"
@@ -90,7 +97,8 @@ jobs:
9097
- name: ArduinoECCX08
9198
- name: RTCZero
9299
- name: MKRGSM
93-
sketch-paths: '"examples/utility/Provisioning"'
100+
sketch-paths: |
101+
- examples/utility/Provisioning
94102
# NB boards
95103
- board:
96104
type: "nb"
@@ -100,7 +108,8 @@ jobs:
100108
- name: ArduinoECCX08
101109
- name: RTCZero
102110
- name: MKRNB
103-
sketch-paths: '"examples/utility/Provisioning"'
111+
sketch-paths: |
112+
- examples/utility/Provisioning
104113
# Portenta
105114
- board:
106115
type: "mbed"
@@ -112,7 +121,8 @@ jobs:
112121
name: arduino:mbed
113122
libraries: |
114123
- name: ArduinoECCX08
115-
sketch-paths: '"examples/utility/Provisioning"'
124+
sketch-paths: |
125+
- examples/utility/Provisioning
116126
# ESP8266 boards
117127
- board:
118128
type: "esp8266"
@@ -159,28 +169,31 @@ jobs:
159169
mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino"
160170
161171
- name: Compile examples
162-
uses: arduino/actions/libraries/compile-examples@master
172+
uses: arduino/compile-sketches@main
163173
with:
164174
platforms: ${{ matrix.platforms }}
165175
fqbn: ${{ matrix.board.fqbn }}
166176
libraries: |
167177
${{ env.UNIVERSAL_LIBRARIES }}
168178
${{ matrix.libraries }}
169-
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.sketch-paths }}"
170-
size-report-sketch: 'ArduinoIoTCloud_Travis_CI'
171-
enable-size-deltas-report: 'true'
179+
sketch-paths: |
180+
${{ env.UNIVERSAL_SKETCH_PATHS }}
181+
${{ matrix.sketch-paths }}
182+
enable-deltas-report: 'true'
183+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
172184

173185
- name: Write data to size trends report spreadsheet
174186
# Update report on every push to the master branch
175187
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
176-
uses: arduino/actions/libraries/report-size-trends@master
188+
uses: arduino/report-size-trends@main
177189
with:
190+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
178191
google-key-file: ${{ secrets.GOOGLE_KEY_FILE }}
179192
spreadsheet-id: 1I6NZkpZpf8KugBkE92adB1Z3_b7ZepOpCdYTOigJpN4
180193

181194
- name: Save memory usage change report as artifact
182195
if: github.event_name == 'pull_request'
183196
uses: actions/upload-artifact@v1
184197
with:
185-
name: 'size-deltas-reports'
186-
path: 'size-deltas-reports'
198+
name: ${{ env.SKETCHES_REPORTS_PATH }}
199+
path: ${{ env.SKETCHES_REPORTS_PATH }}

.github/workflows/report-size-deltas.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ jobs:
88

99
steps:
1010
- name: Comment size deltas reports to PRs
11-
uses: arduino/actions/libraries/report-size-deltas@master
11+
uses: arduino/report-size-deltas@main
12+
with:
13+
# The name of the workflow artifact created by the "Compile Examples" workflow
14+
sketches-reports-source: sketches-reports

0 commit comments

Comments
 (0)