Skip to content

Commit 6214b92

Browse files
authored
Report memory usage change caused by PRs (#116)
On every push to a pull request, the change in memory usage of examples/utility/ArduinoIoTCloud_Travis_CI between the PR's head and base branch for each of the boards in the board matrix will be: - Shown in the log - Saved to a workflow artifact - Commented to the PR's thread as a table (after a delay of ~7 minutes max.)
1 parent 399bd8f commit 6214b92

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Diff for: .github/workflows/compile-examples.yml

+9
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,12 @@ jobs:
4848
fqbn: ${{ matrix.board.fqbn }}
4949
libraries: "${{ env.UNIVERSAL_LIBRARIES }} ${{ env[format('{0}{1}', matrix.board.type, '_LIBRARIES')] }}"
5050
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ env[format('{0}{1}', matrix.board.type, '_SKETCH_PATHS')] }}"
51+
size-report-sketch: 'ArduinoIoTCloud_Travis_CI'
52+
enable-size-deltas-report: 'true'
53+
54+
- name: Save memory usage change report as artifact
55+
if: github.event_name == 'pull_request'
56+
uses: actions/upload-artifact@v1
57+
with:
58+
name: 'size-deltas-reports'
59+
path: 'size-deltas-reports'

Diff for: .github/workflows/report-size-deltas.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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/actions/libraries/report-size-deltas@master

0 commit comments

Comments
 (0)