File tree Expand file tree Collapse file tree 3 files changed +24
-28
lines changed Expand file tree Collapse file tree 3 files changed +24
-28
lines changed Original file line number Diff line number Diff line change 20
20
workflow_dispatch :
21
21
repository_dispatch :
22
22
23
+ env :
24
+ # It's convenient to set variables for values used multiple times in the workflow.
25
+ SKETCHES_REPORTS_PATH : sketches-reports
26
+
23
27
jobs :
24
- build :
28
+ compile :
25
29
name : ${{ matrix.board.fqbn }}
26
30
runs-on : ubuntu-latest
27
31
28
- env :
29
- SKETCHES_REPORTS_PATH : sketches-reports
30
-
31
32
strategy :
32
33
fail-fast : false
33
34
@@ -140,3 +141,21 @@ jobs:
140
141
if-no-files-found : error
141
142
path : ${{ env.SKETCHES_REPORTS_PATH }}
142
143
name : sketches-report-${{ matrix.board.artifact-name-suffix }}
144
+
145
+ # When using a matrix to compile for multiple boards, it's necessary to use a separate job for the deltas report
146
+ report :
147
+ needs : compile # Wait for the compile job to finish to get the data for the report
148
+ if : github.event_name == 'pull_request' # Only run the job when the workflow is triggered by a pull request
149
+ runs-on : ubuntu-latest
150
+
151
+ steps :
152
+ # This step is needed to get the size data produced by the compile jobs
153
+ - name : Download sketches reports artifacts
154
+ uses : actions/download-artifact@v4
155
+ with :
156
+ # All workflow artifacts will be downloaded to this location.
157
+ path : ${{ env.SKETCHES_REPORTS_PATH }}
158
+
159
+ - uses : arduino/report-size-deltas@v1
160
+ with :
161
+ sketches-reports-source : ${{ env.SKETCHES_REPORTS_PATH }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ .idea /
You can’t perform that action at this time.
0 commit comments