Skip to content

Commit d6a4ce8

Browse files
committed
add reports
f
1 parent d08afa9 commit d6a4ce8

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
on:
2+
schedule:
3+
- cron: '*/5 * * * *'
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: arduino/report-size-deltas@v1

.github/workflows/arduino.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- uses: arduino/compile-sketches@v1
2121
with:
22+
enable-deltas-report: true
2223
github-token: ${{ secrets.GITHUB_TOKEN }}
2324
fqbn: ${{ matrix.fqbn }}
2425
platforms: |
@@ -31,3 +32,25 @@ jobs:
3132
- name: ArduinoJson
3233
cli-compile-flags: |
3334
- --warnings="none"
35+
36+
- uses: actions/upload-artifact@v2
37+
with:
38+
name: sketches-reports
39+
path: sketches-reports
40+
41+
42+
report:
43+
needs: build-for-esp32
44+
if: github.event_name == 'pull_request'
45+
runs-on: ubuntu-latest
46+
steps:
47+
# This step is needed to get the size data produced by the compile jobs
48+
- name: Download sketches reports artifact
49+
uses: actions/download-artifact@v2
50+
with:
51+
name: sketches-reports
52+
path: sketches-reports
53+
54+
- uses: arduino/report-size-deltas@v1
55+
with:
56+
sketches-reports-source: sketches-reports

0 commit comments

Comments
 (0)