File tree 3 files changed +24
-28
lines changed
3 files changed +24
-28
lines changed Original file line number Diff line number Diff line change 18
18
workflow_dispatch :
19
19
repository_dispatch :
20
20
21
+ env :
22
+ # It's convenient to set variables for values used multiple times in the workflow.
23
+ SKETCHES_REPORTS_PATH : sketches-reports
24
+
21
25
jobs :
22
- build :
26
+ compile :
23
27
name : ${{ matrix.board.fqbn }}
24
28
runs-on : ubuntu-latest
25
29
26
- env :
27
- SKETCHES_REPORTS_PATH : sketches-reports
28
-
29
30
strategy :
30
31
fail-fast : false
31
32
61
62
if-no-files-found : error
62
63
path : ${{ env.SKETCHES_REPORTS_PATH }}
63
64
name : sketches-report-${{ matrix.board.artifact-name-suffix }}
65
+
66
+ # When using a matrix to compile for multiple boards, it's necessary to use a separate job for the deltas report
67
+ report :
68
+ needs : compile # Wait for the compile job to finish to get the data for the report
69
+ if : github.event_name == 'pull_request' # Only run the job when the workflow is triggered by a pull request
70
+ runs-on : ubuntu-latest
71
+
72
+ steps :
73
+ # This step is needed to get the size data produced by the compile jobs
74
+ - name : Download sketches reports artifacts
75
+ uses : actions/download-artifact@v4
76
+ with :
77
+ # All workflow artifacts will be downloaded to this location.
78
+ path : ${{ env.SKETCHES_REPORTS_PATH }}
79
+
80
+ - uses : arduino/report-size-deltas@v1
81
+ with :
82
+ sketches-reports-source : ${{ env.SKETCHES_REPORTS_PATH }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ examples/node_test_server/node_modules/
3
3
* .DS_Store
4
4
* /.DS_Store
5
5
examples /.DS_Store
6
+ .idea /
You can’t perform that action at this time.
0 commit comments