Skip to content

Commit 2b21c3c

Browse files
authored
Fix regression re report-size-deltas after updating actions/upload-artifact. (#113)
For more information see https://github.com/arduino/report-size-deltas/blob/main/docs/FAQ.md#size-deltas-report-workflow-triggered-by-schedule-event .
1 parent 3e21ace commit 2b21c3c

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/compile-examples.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -42,42 +42,61 @@ jobs:
4242
board:
4343
- fqbn: "arduino:samd:mkr1000"
4444
platform-name: arduino:samd
45+
artifact-name-suffix: arduino-samd-mkr1000
4546
- fqbn: "arduino:samd:mkrwifi1010"
4647
platform-name: arduino:samd
48+
artifact-name-suffix: arduino-samd-mkrwifi1010
4749
- fqbn: "arduino:samd:nano_33_iot"
4850
platform-name: arduino:samd
51+
artifact-name-suffix: arduino-samd-nano_33_iot
4952
- fqbn: "arduino:samd:mkrgsm1400"
5053
platform-name: arduino:samd
54+
artifact-name-suffix: arduino-samd-mkrgsm1400
5155
- fqbn: "arduino:samd:mkrnb1500"
5256
platform-name: arduino:samd
57+
artifact-name-suffix: arduino-samd-mkrnb1500
5358
- fqbn: "arduino:samd:mkrwan1300"
5459
platform-name: arduino:samd
60+
artifact-name-suffix: arduino-samd-mkrwan1300
5561
- fqbn: "arduino:samd:mkrwan1310"
5662
platform-name: arduino:samd
63+
artifact-name-suffix: arduino-samd-mkrwan1310
5764
- fqbn: "arduino:mbed:envie_m7"
5865
platform-name: arduino:mbed
66+
artifact-name-suffix: arduino-mbed-envie_m7
5967
- fqbn: "arduino:mbed_portenta:envie_m7"
6068
platform-name: arduino:mbed_portenta
69+
artifact-name-suffix: arduino-mbed_portenta-envie_m7
6170
- fqbn: "esp8266:esp8266:huzzah"
6271
platform-name: esp8266:esp8266
72+
artifact-name-suffix: esp8266-esp8266-huzzah
6373
- fqbn: "esp32:esp32:esp32"
6474
platform-name: esp32:esp32
75+
artifact-name-suffix: esp32-esp32-esp32
6576
- fqbn: arduino:mbed_nano:nanorp2040connect
6677
platform-name: arduino:mbed_nano
78+
artifact-name-suffix: arduino-mbed_nano-nanorp2040connect
6779
- fqbn: arduino:mbed_nicla:nicla_vision
6880
platform-name: arduino:mbed_nicla
81+
artifact-name-suffix: arduino-mbed_nicla-nicla_vision
6982
- fqbn: arduino:mbed_opta:opta
7083
platform-name: arduino:mbed_opta
84+
artifact-name-suffix: arduino-mbed_opta-opta
7185
- fqbn: arduino:mbed_giga:giga
7286
platform-name: arduino:mbed_giga
87+
artifact-name-suffix: arduino-mbed_giga-giga
7388
- fqbn: arduino:renesas_portenta:portenta_c33
7489
platform-name: arduino:renesas_portenta
90+
artifact-name-suffix: arduino-renesas_portenta-portenta_c33
7591
- fqbn: arduino:renesas_uno:unor4wifi
7692
platform-name: arduino:renesas_uno
93+
artifact-name-suffix: arduino-renesas_uno-unor4wifi
7794
- fqbn: arduino:esp32:nano_nora
7895
platform-name: arduino:esp32
96+
artifact-name-suffix: arduino-esp32-nano_nora
7997
- fqbn: arduino:mbed_edge:edge_control
8098
platform-name: arduino:mbed_edge
99+
artifact-name-suffix: arduino-mbed_edge-edge_control
81100

82101
# Make board type-specific customizations to the matrix jobs
83102
include:
@@ -168,5 +187,5 @@ jobs:
168187
uses: actions/upload-artifact@v4
169188
with:
170189
if-no-files-found: error
171-
name: ${{ env.SKETCHES_REPORTS_PATH }}
190+
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
172191
path: ${{ env.SKETCHES_REPORTS_PATH }}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
- name: Comment size deltas reports to PRs
1818
uses: arduino/report-size-deltas@v1
1919
with:
20-
# The name of the workflow artifact created by the sketch compilation workflow
21-
sketches-reports-source: sketches-reports
20+
# Regex matching the names of the workflow artifacts created by the "Compile Examples" workflow
21+
sketches-reports-source: ^sketches-report-.+

0 commit comments

Comments
 (0)