Skip to content

Commit 1cd66b6

Browse files
authored
Fix regression re report-size-deltas after updating actions/upload-artifact. (#103)
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 45b0f07 commit 1cd66b6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/compile-examples.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,19 @@ jobs:
4848
- fqbn: arduino:mbed_nano:nano33ble
4949
platforms: |
5050
- name: arduino:mbed_nano
51+
artifact-name-suffix: arduino-mbed_nano-nano33ble
5152
- fqbn: arduino:mbed_nano:nanorp2040connect
5253
platforms: |
5354
- name: arduino:mbed_nano
55+
artifact-name-suffix: arduino-mbed_nano-nanorp2040connect
5456
- fqbn: arduino:mbed_portenta:envie_m7:target_core=cm4
5557
platforms: |
5658
- name: arduino:mbed_portenta
59+
artifact-name-suffix: arduino-mbed_portenta-envie_m7-target_core-cm4
5760
- fqbn: arduino:mbed_portenta:envie_m7:target_core=cm7
5861
platforms: |
5962
- name: arduino:mbed_portenta
63+
artifact-name-suffix: arduino-mbed_portenta-envie_m7
6064

6165
steps:
6266
- name: Checkout
@@ -101,6 +105,6 @@ jobs:
101105
- name: Save memory usage change report as artifact
102106
uses: actions/upload-artifact@v4
103107
with:
104-
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
108+
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
105109
if-no-files-found: error
106110
path: ${{ env.SKETCHES_REPORTS_PATH }}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
- name: Comment size deltas reports to PRs
2626
uses: arduino/report-size-deltas@v1
2727
with:
28-
# The name of the workflow artifact created by the sketch compilation workflow
29-
sketches-reports-source: sketches-reports
28+
# Regex matching the names of the workflow artifacts created by the "Compile Examples" workflow
29+
sketches-reports-source: ^sketches-report-.+

0 commit comments

Comments
 (0)