Skip to content

Commit 7e4c423

Browse files
committed
Add workflow for CI
1 parent c8a1dd9 commit 7e4c423

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Compile Examples
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
compile-test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
fqbn: [
12+
"arduino:megaavr:uno2018" #,
13+
#"arduino:megaavr:nona4809"
14+
]
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
20+
# The source files are in a subfolder of the ArduinoCore-API repository, so it's not possible to clone it directly to the final destination in the core
21+
- name: Checkout ArduinoCore-API
22+
uses: actions/checkout@v2
23+
with:
24+
repository: arduino/ArduinoCore-API
25+
path: extras/ArduinoCore-API
26+
27+
- name: Install ArduinoCore-API
28+
run: mv "$GITHUB_WORKSPACE/extras/ArduinoCore-API/api" "$GITHUB_WORKSPACE/cores/arduino"
29+
30+
- name: Checkout Adafruit WiFiNINA
31+
uses: actions/checkout@v2
32+
with:
33+
repository: adafruit/WiFiNINA
34+
path: libraries/WiFiNINA
35+
36+
- name: Compile examples
37+
uses: arduino/actions/libraries/compile-examples@master
38+
with:
39+
fqbn: ${{ matrix.fqbn }}
40+
libraries: |
41+
- name: Adafruit IO Arduino
42+
version: 3.6.0
43+
- name: Adafruit MQTT Library
44+
version: 1.0.3
45+
- name: ArduinoHttpClient
46+
version: 0.4.0
47+
# Don't use library manager WiFiNINA
48+
# - name: WiFiNINA
49+
# version: 1.4.0
50+
- name: MegunoLink
51+
platforms: |
52+
# Use Board Manager to install the latest release of Arduino megaAVR Boards to get the toolchain
53+
- name: "arduino:megaavr"
54+
# Overwrite the Board Manager installation with the local platform
55+
- source-path: "./"
56+
name: "arduino:megaavr"
57+
sketch-paths: "extras/AIO_LED_Pot"
58+
size-report-sketch: 'AIO_LED_Pot'
59+
enable-size-deltas-report: 'true'
60+
verbose: 'true'
61+
62+
- name: Save memory usage change report as artifact
63+
if: github.event_name == 'pull_request'
64+
uses: actions/upload-artifact@v1
65+
with:
66+
name: 'size-deltas-reports'
67+
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)