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'
0 commit comments