aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/report-size-deltas.yml
diff options
context:
space:
mode:
authorper1234 <accounts@perglass.com>2021-05-26 04:38:37 -0700
committerper1234 <accounts@perglass.com>2021-05-26 05:37:58 -0700
commit20dc2e532e5cecd17a7f463cf86541d87e5090e8 (patch)
treef37ee9bb4116845b34f852c88dcaee0662916dff /.github/workflows/report-size-deltas.yml
parent05b7d7a9e9e89599f9b4c4762d55a7f5f4161ed4 (diff)
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.
Diffstat (limited to '.github/workflows/report-size-deltas.yml')
-rw-r--r--.github/workflows/report-size-deltas.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/report-size-deltas.yml b/.github/workflows/report-size-deltas.yml
new file mode 100644
index 0000000..652be5d
--- /dev/null
+++ b/.github/workflows/report-size-deltas.yml
@@ -0,0 +1,24 @@
+name: Report Size Deltas
+
+# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
+on:
+ push:
+ paths:
+ - ".github/workflows/report-size-deltas.yml"
+ schedule:
+ # Run at the minimum interval allowed by GitHub Actions.
+ # Note: GitHub Actions periodically has outages which result in workflow failures.
+ # In this event, the workflows will start passing again once the service recovers.
+ - cron: "*/5 * * * *"
+ workflow_dispatch:
+ repository_dispatch:
+
+jobs:
+ report:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Comment size deltas reports to PRs
+ uses: arduino/report-size-deltas@v1
+ with:
+ # The name of the workflow artifact created by the sketch compilation workflow
+ sketches-reports-source: sketches-reports