Skip to content

Commit f55722d

Browse files
authored
Fix regression: report size delta size on PR. (#101)
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 24142a0 commit f55722d

File tree

3 files changed

+20
-28
lines changed

3 files changed

+20
-28
lines changed

Diff for: .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

@@ -128,3 +128,18 @@ jobs:
128128
if-no-files-found: error
129129
path: ${{ env.SKETCHES_REPORTS_PATH }}
130130
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
131+
132+
report:
133+
needs: compile
134+
if: github.event_name == 'pull_request'
135+
runs-on: ubuntu-latest
136+
137+
steps:
138+
- name: Download sketches reports artifacts
139+
uses: actions/download-artifact@v4
140+
with:
141+
path: ${{ env.SKETCHES_REPORTS_PATH }}
142+
143+
- uses: arduino/report-size-deltas@v1
144+
with:
145+
sketches-reports-source: ${{ env.SKETCHES_REPORTS_PATH }}

Diff for: .github/workflows/report-size-deltas.yml

-24
This file was deleted.

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

0 commit comments

Comments
 (0)