Skip to content

Commit 0debc09

Browse files
committed
Fix regression: report size delta size on PR.
The necessary steps have in fact been documented here: https://github.com/arduino/report-size-deltas/blob/main/docs/FAQ.md#workflow-triggered-by-pull_request-event but I have overlooked them when I fixed the upload issue. With this PR the size deltas are - once again - reported within the PR.
1 parent 6490e25 commit 0debc09

File tree

3 files changed

+20
-28
lines changed

3 files changed

+20
-28
lines changed

.github/workflows/compile-examples.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ on:
1818
workflow_dispatch:
1919
repository_dispatch:
2020

21+
env:
22+
SKETCHES_REPORTS_PATH: sketches-reports
23+
2124
jobs:
22-
build:
25+
compile:
2326
name: ${{ matrix.board.fqbn }}
2427
runs-on: ubuntu-latest
2528

26-
env:
27-
SKETCHES_REPORTS_PATH: sketches-reports
28-
2929
strategy:
3030
fail-fast: false
3131

@@ -112,3 +112,18 @@ jobs:
112112
if-no-files-found: error
113113
path: ${{ env.SKETCHES_REPORTS_PATH }}
114114
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
115+
116+
report:
117+
needs: compile
118+
if: github.event_name == 'pull_request'
119+
runs-on: ubuntu-latest
120+
121+
steps:
122+
- name: Download sketches reports artifacts
123+
uses: actions/download-artifact@v4
124+
with:
125+
path: ${{ env.SKETCHES_REPORTS_PATH }}
126+
127+
- uses: arduino/report-size-deltas@v1
128+
with:
129+
sketches-reports-source: ${{ env.SKETCHES_REPORTS_PATH }}

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

Lines changed: 0 additions & 24 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

0 commit comments

Comments
 (0)