File tree 3 files changed +21
-15
lines changed
3 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 13
13
- " src/**"
14
14
15
15
jobs :
16
- build :
16
+ compile :
17
17
runs-on : ubuntu-latest
18
18
19
19
env :
@@ -292,9 +292,28 @@ jobs:
292
292
google-key-file : ${{ secrets.GOOGLE_KEY_FILE }}
293
293
spreadsheet-id : 1I6NZkpZpf8KugBkE92adB1Z3_b7ZepOpCdYTOigJpN4
294
294
295
+ # This step is needed to pass the size data to the report job.
295
296
- name : Save memory usage change report as artifact
296
297
if : github.event_name == 'pull_request'
297
298
uses : actions/upload-artifact@v4
298
299
with :
299
300
name : sketches-report-${{ matrix.board.artifact-name-suffix }}
300
301
path : ${{ env.SKETCHES_REPORTS_PATH }}
302
+
303
+ # When using a matrix to compile for multiple boards, it's necessary to use a separate job for the deltas report
304
+ report :
305
+ needs : compile # Wait for the compile job to finish to get the data for the report
306
+ if : github.event_name == 'pull_request' # Only run the job when the workflow is triggered by a pull request
307
+ runs-on : ubuntu-latest
308
+
309
+ steps :
310
+ # This step is needed to get the size data produced by the compile jobs
311
+ - name : Download sketches reports artifacts
312
+ uses : actions/download-artifact@v4
313
+ with :
314
+ # All workflow artifacts will be downloaded to this location.
315
+ path : ${{ env.SKETCHES_REPORTS_PATH }}
316
+
317
+ - uses : arduino/report-size-deltas@v1
318
+ with :
319
+ sketches-reports-source : ${{ env.SKETCHES_REPORTS_PATH }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
* .orig
6
6
.vs
7
7
build
8
+ .idea /
You can’t perform that action at this time.
0 commit comments