8000 Report changes in memory usage that would result from merging a PR · arduino-libraries/Arduino_JSON@09984ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 09984ca

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 87a6333 commit 09984ca

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/compile-examples.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
name: ${{ matrix.board.fqbn }}
2626
runs-on: ubuntu-latest
2727

28+
env:
29+
SKETCHES_REPORTS_PATH: sketches-reports
30+
2831
strategy:
2932
fail-fast: false
3033

@@ -93,3 +96,12 @@ jobs:
9396
# See: https://github.com/arduino/compile-sketches#libraries
9497
sketch-paths: |
9598
- examples
99+
enable-deltas-report: true
100+
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
101+
102+
- name: Save sketches report as workflow artifact
103+
uses: actions/upload-artifact@v2
104+
with:
105+
if-no-files-found: error
106+
path: ${{ env.SKETCHES_REPORTS_PATH }}
107+
name: ${{ env.SKETCHES_REPORTS_PATH }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Report Size Deltas
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
paths:
7+
- ".github/workflows/report-size-deltas.yml"
8+
schedule:
9+
# Run at the minimum interval allowed by GitHub Actions.
10+
# Note: GitHub Actions periodically has outages which result in workflow failures.
11+
# In this event, the workflows will start passing again once the service recovers.
12+
- cron: "*/5 * * * *"
13+
workflow_dispatch:
14+
repository_dispatch:
15+
16+
jobs:
17+
report:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Comment size deltas reports to PRs
21+
uses: arduino/report-size-deltas@v1
22+
with:
23+
# The name of the workflow artifact created by the sketch compilation workflow
24+
sketches-reports-source: sketches-reports

0 commit comments

Comments
 (0)
0