Skip to content

Commit 4d911f5

Browse files
authored
Fix regression report-size-deltas after updating upload-artifact. (#125)
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 e5fb971 commit 4d911f5

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/compile-examples.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ jobs:
1919
env:
2020
SKETCHES_REPORTS_PATH: sketches-reports
2121

22+
strategy:
23+
fail-fast: false
24+
25+
matrix:
26+
board:
27+
- fqbn: arduino:samd:mkrnb1500
28+
platforms: |
29+
- name: arduino:samd
30+
artifact-name-suffix: arduino-samd-mkrnb1500
31+
2232
steps:
2333
- name: Checkout
2434
uses: actions/checkout@v4
@@ -27,9 +37,10 @@ jobs:
2737
uses: arduino/compile-sketches@main
2838
with:
2939
github-token: ${{ secrets.GITHUB_TOKEN }}
30-
fqbn: arduino:samd:mkrnb1500
40+
fqbn: ${{ matrix.board.fqbn }}
41+
platforms: ${{ matrix.board.platforms }}
3142
libraries: |
32-
# Install the WiFi101 library from the local path
43+
# Install the MKRNB library from the local path
3344
- source-path: ./
3445
sketch-paths: |
3546
examples
@@ -39,5 +50,6 @@ jobs:
3950
- name: Save memory usage change report as artifact
4051
uses: actions/upload-artifact@v4
4152
with:
42-
name: ${{ env.SKETCHES_REPORTS_PATH }}
53+
if-no-files-found: error
4354
path: ${{ env.SKETCHES_REPORTS_PATH }}
55+
name: sketches-report-${{ matrix.board.artifact-name-suffix }}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ jobs:
1010
- name: Comment size deltas reports to PRs
1111
uses: arduino/report-size-deltas@main
1212
with:
13-
# The name of the workflow artifact created by the "Compile Examples" workflow
14-
sketches-reports-source: sketches-reports
13+
# Regex matching the names of the workflow artifacts created by the "Compile Examples" workflow
14+
sketches-reports-source: ^sketches-report-.+

0 commit comments

Comments
 (0)