Skip to content

Commit 28ca5a3

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 6370523 commit 28ca5a3

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/compile-examples.yml

+9
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
env:
25+
SKETCHES_REPORTS_PATH: sketches-reports
2526
# Libraries to install for all boards
2627
UNIVERSAL_LIBRARIES: |
2728
# Install the ArduinoModbus library from the local path
@@ -78,3 +79,11 @@ jobs:
7879
sketch-paths: |
7980
${{ env.UNIVERSAL_SKETCH_PATHS }}
8081
${{ matrix.nina-sketch-paths }}
82+
enable-deltas-report: true
83+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
84+
85+
- name: Save memory usage change report as artifact
86+
uses: actions/upload-artifact@v2
87+
with:
88+
name: ${{ env.SKETCHES_REPORTS_PATH }}
89+
path: ${{ env.SKETCHES_REPORTS_PATH }}
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Report Size Deltas
2+
3+
on:
4+
schedule:
5+
- cron: "*/5 * * * *"
6+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch
7+
workflow_dispatch:
8+
9+
jobs:
10+
report:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Comment size deltas reports to PRs
15+
uses: arduino/report-size-deltas@main
16+
with:
17+
# The name of the workflow artifact created by the "Compile Examples" workflow
18+
sketches-reports-source: sketches-reports

0 commit comments

Comments
 (0)