Skip to content

Commit 65b0e1d

Browse files
committed
Report changes in memory usage that would result from merging a PR
On creation or commit to a pull request, a report of the resulting change in memory usage of the examples will be commented to the PR thread.
1 parent 99d7761 commit 65b0e1d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/compile-examples.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- examples/WiFiWebClient
3838
- examples/WiFiWebClientRepeating
3939
- examples/WiFiWebServer
40+
SKETCHES_REPORTS_PATH: sketches-reports
4041

4142
strategy:
4243
fail-fast: false
@@ -80,3 +81,11 @@ jobs:
8081
sketch-paths: |
8182
${{ env.UNIVERSAL_SKETCH_PATHS }}
8283
${{ matrix.firmwareUpdater-sketch-paths }}
84+
enable-deltas-report: true
85+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
86+
87+
- name: Save memory usage change report as artifact
88+
uses: actions/upload-artifact@v2
89+
with:
90+
name: ${{ env.SKETCHES_REPORTS_PATH }}
91+
path: ${{ env.SKETCHES_REPORTS_PATH }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
schedule:
3+
- cron: '*/5 * * * *'
4+
5+
jobs:
6+
report:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Comment size deltas reports to PRs
11+
uses: arduino/report-size-deltas@main
12+
with:
13+
# The name of the workflow artifact created by the "Compile Examples" workflow
14+
sketches-reports-source: sketches-reports

0 commit comments

Comments
 (0)