File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
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
+ SKETCHES_REPORTS_PATH : sketches-reports
25
+ SKETCHES_REPORTS_ARTIFACT_NAME : sketches-reports
26
+
23
27
jobs :
24
28
build :
25
29
name : ${{ matrix.board.fqbn }}
53
57
# See: https://github.com/arduino/compile-sketches#libraries
54
58
sketch-paths : |
55
59
- examples
60
+ enable-deltas-report : true
61
+ sketches-report-path : ${{ env.SKETCHES_REPORTS_PATH }}
62
+
63
+ - name : Save sketches report as workflow artifact
64
+ uses : actions/upload-artifact@v2
65
+ with :
66
+ if-no-files-found : error
67
+ path : ${{ env.SKETCHES_REPORTS_PATH }}
68
+ name : ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
69
+
70
+ report-size-deltas :
71
+ needs : build
72
+ # Run even if some compilations failed.
73
+ if : always() && github.event_name == 'pull_request'
74
+ runs-on : ubuntu-latest
75
+
76
+ steps :
77
+ - name : Download sketches reports artifact
78
+ id : download-artifact
79
+ continue-on-error : true # If compilation failed for all boards then there are no artifacts
80
+ uses : actions/download-artifact@v2
81
+ with :
82
+ name : ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
83
+ path : ${{ env.SKETCHES_REPORTS_PATH }}
84
+
85
+ - name : Comment size deltas report to PR
86
+ uses : arduino/report-size-deltas@v1
87
+ # If actions/download-artifact failed, there are no artifacts to report from.
88
+ if : steps.download-artifact.outcome == 'success'
89
+ with :
90
+ sketches-reports-source : ${{ env.SKETCHES_REPORTS_PATH }}
You can’t perform that action at this time.
0 commit comments