Skip to content

Commit 40ce7ca

Browse files
authored
Merge pull request #31 from per1234/add-size-deltas-report
Report memory usage change caused by PRs
2 parents fa8cc60 + c23bc03 commit 40ce7ca

File tree

2 files changed

+48
-25
lines changed

2 files changed

+48
-25
lines changed
Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,40 @@
11
name: Compile Examples
22
on: [push, pull_request]
33
jobs:
4-
build:
5-
runs-on: ubuntu-latest
4+
build:
5+
runs-on: ubuntu-latest
66

7-
env:
8-
LIBRARIES: Arduino_DebugUtils WiFi101 WiFiNINA MKRGSM MKRNB MKRWAN
9-
strategy:
10-
matrix:
11-
fqbn: [
12-
"arduino:samd:mkr1000",
13-
"arduino:samd:mkrwifi1010",
14-
"arduino:samd:nano_33_iot",
15-
"arduino:samd:mkrgsm1400",
16-
"arduino:samd:mkrnb1500",
17-
"arduino:samd:mkrwan1300",
18-
"arduino:samd:mkrwan1310",
19-
'"esp8266:esp8266:huzzah" "https://arduino.esp8266.com/stable/package_esp8266com_index.json"'
20-
]
7+
env:
8+
LIBRARIES: Arduino_DebugUtils WiFi101 WiFiNINA MKRGSM MKRNB MKRWAN
9+
strategy:
10+
matrix:
11+
fqbn: [
12+
"arduino:samd:mkr1000",
13+
"arduino:samd:mkrwifi1010",
14+
"arduino:samd:nano_33_iot",
15+
"arduino:samd:mkrgsm1400",
16+
"arduino:samd:mkrnb1500",
17+
"arduino:samd:mkrwan1300",
18+
"arduino:samd:mkrwan1310",
19+
'"esp8266:esp8266:huzzah" "https://arduino.esp8266.com/stable/package_esp8266com_index.json"'
20+
]
2121

22-
steps:
23-
- uses: actions/checkout@v1
24-
with:
25-
fetch-depth: 1
26-
- name: Compile examples
27-
uses: arduino/actions/libraries/compile-examples@master
28-
with:
29-
fqbn: ${{ matrix.fqbn }}
30-
libraries: ${{ env.LIBRARIES }}
22+
steps:
23+
- uses: actions/checkout@v1
24+
with:
25+
fetch-depth: 1
26+
27+
- name: Compile examples
28+
uses: arduino/actions/libraries/compile-examples@master
29+
with:
30+
fqbn: ${{ matrix.fqbn }}
31+
libraries: ${{ env.LIBRARIES }}
32+
size-report-sketch: 'ConnectionHandlerDemo'
33+
enable-size-deltas-report: 'true'
34+
35+
- name: Save memory usage change report as artifact
36+
if: github.event_name == 'pull_request'
37+
uses: actions/upload-artifact@v1
38+
with:
39+
name: 'size-deltas-reports'
40+
path: 'size-deltas-reports'
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Report PR Size Deltas
2+
3+
on:
4+
schedule:
5+
- cron: '*/5 * * * *'
6+
7+
jobs:
8+
report:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Comment size deltas reports to PRs
13+
uses: arduino/actions/libraries/report-size-deltas@master

0 commit comments

Comments
 (0)