Skip to content

Commit 4ce0758

Browse files
authored
Fix regression: report size delta size on PR. (#65)
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 ddfbe07 commit 4ce0758

File tree

2 files changed

+19
-28
lines changed

2 files changed

+19
-28
lines changed

.github/workflows/compile-examples.yml

+19-4
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

@@ -135,3 +135,18 @@ jobs:
135135
if-no-files-found: error
136136
path: ${{ env.SKETCHES_REPORTS_PATH }}
137137
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
138+
139+
report:
140+
needs: compile
141+
if: github.event_name == 'pull_request'
142+
runs-on: ubuntu-latest
143+
144+
steps:
145+
- name: Download sketches reports artifacts
146+
uses: actions/download-artifact@v4
147+
with:
148+
path: ${{ env.SKETCHES_REPORTS_PATH }}
149+
150+
- uses: arduino/report-size-deltas@v1
151+
with:
152+
sketches-reports-source: ${{ env.SKETCHES_REPORTS_PATH }}

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

-24
This file was deleted.

0 commit comments

Comments
 (0)