18
18
19
19
env :
20
20
# libraries to install for all boards
21
- UNIVERSAL_LIBRARIES : ' "Arduino_ConnectionHandler" "Arduino_DebugUtils" "ArduinoMqttClient"'
21
+ UNIVERSAL_LIBRARIES : |
22
+ # Install the ArduinoIoTCloud library from the repository
23
+ - source-path: ./
24
+ - source-url: https://github.com/arduino-libraries/Arduino_ConnectionHandler.git
25
+ version: latest
26
+ - name: Arduino_DebugUtils
27
+ - name: ArduinoMqttClient
22
28
# sketch paths to compile (recursive) for all boards
23
29
UNIVERSAL_SKETCH_PATHS : ' "examples/ArduinoIoTCloud-Advanced" "examples/ArduinoIoTCloud-Basic" "examples/utility/ArduinoIoTCloud_Travis_CI"'
24
30
@@ -33,34 +39,73 @@ jobs:
33
39
{"fqbn": "arduino:samd:mkrwan1300", "type": "wan"},
34
40
{"fqbn": "arduino:samd:mkrgsm1400", "type": "gsm"},
35
41
{"fqbn": "arduino:samd:mkrnb1500", "type": "nb"},
36
- {"fqbn": ' "esp8266:esp8266:huzzah" "https://arduino.esp8266.com/stable/package_esp8266com_index.json"' , "type": "esp8266"}
42
+ {"fqbn": "esp8266:esp8266:huzzah", "type": "esp8266"}
37
43
]
38
44
39
45
# make board type-specific customizations to the matrix jobs
40
46
include :
41
47
# WiFi boards
42
48
- board :
43
49
type : " wifi"
44
- libraries : ' "ArduinoECCX08" "RTCZero" "WiFi101" "WiFiNINA" "Arduino_MKRMEM"'
50
+ platforms : |
51
+ # Install Arduino SAMD Boards via Boards Manager for the toolchain
52
+ - name: arduino:samd
53
+ # Overwrite the Arduino SAMD Boards release version with version from the tip of the master branch
54
+ - source-url: https://github.com/arduino/ArduinoCore-samd/archive/master.zip
55
+ name: arduino:samd
56
+ libraries : |
57
+ - name: ArduinoECCX08
58
+ - name: RTCZero
59
+ - name: WiFi101
60
+ - name: WiFiNINA
61
+ - name: Arduino_MKRMEM
45
62
sketch-paths : ' "examples/utility/Provisioning" "examples/utility/WiFi_Cloud_Blink"'
46
63
# LoRaWAN boards
47
64
- board :
48
65
type : " wan"
49
- libraries : ' "ArduinoECCX08" "RTCZero" "MKRWAN"'
66
+ platforms : |
67
+ - name: arduino:samd
68
+ - source-url: https://github.com/arduino/ArduinoCore-samd/archive/master.zip
69
+ name: arduino:samd
70
+ libraries : |
71
+ - name: ArduinoECCX08
72
+ - name: RTCZero
73
+ - name: MKRWAN
50
74
sketch-paths :
51
75
# GSM boards
52
76
- board :
53
77
type : " gsm"
54
- libraries : ' "ArduinoECCX08" "RTCZero" "MKRGSM" "Arduino_MKRMEM"'
78
+ platforms : |
79
+ - name: arduino:samd
80
+ - source-url: https://github.com/arduino/ArduinoCore-samd/archive/master.zip
81
+ name: arduino:samd
82
+ libraries : |
83
+ - name: ArduinoECCX08
84
+ - name: RTCZero
85
+ # Use the version of MKRGSM from the tip of its repository's default branch
86
+ - source-url: https://github.com/arduino-libraries/MKRGSM.git
87
+ - name: Arduino_MKRMEM
55
88
sketch-paths : ' "examples/utility/Provisioning" "examples/utility/GSM_Cloud_Blink"'
56
89
# NB boards
57
90
- board :
58
91
type : " nb"
59
- libraries : ' "ArduinoECCX08" "RTCZero" "MKRNB" "Arduino_MKRMEM"'
92
+ platforms : |
93
+ - name: arduino:samd
94
+ - source-url: https://github.com/arduino/ArduinoCore-samd/archive/master.zip
95
+ name: arduino:samd
96
+ libraries : |
97
+ - name: ArduinoECCX08
98
+ - name: RTCZero
99
+ - name: MKRNB
100
+ - name: Arduino_MKRMEM
60
101
sketch-paths : ' "examples/utility/Provisioning" "examples/utility/NB_Cloud_Blink"'
61
102
# ESP8266 boards
62
103
- board :
63
104
type : " esp8266"
105
+ platforms : |
106
+ # Install ESP8266 platform via Boards Manager
107
+ - name: esp8266:esp8266
108
+ source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
64
109
libraries :
65
110
sketch-paths : ' "examples/utility/WiFi_Cloud_Blink_with_security_credentials"'
66
111
@@ -71,10 +116,11 @@ jobs:
71
116
- name : Compile examples
72
117
uses : arduino/actions/libraries/compile-examples@master
73
118
with :
74
- platforms |
75
- - source-url : https://github.com/arduino/ArduinoCore-samd/archive/master.zip
119
+ platforms : ${{ matrix.platforms }}
76
120
fqbn : ${{ matrix.board.fqbn }}
77
- libraries : " ${{ env.UNIVERSAL_LIBRARIES }} ${{ matrix.libraries }}"
121
+ libraries : |
122
+ ${{ env.UNIVERSAL_LIBRARIES }}
123
+ ${{ matrix.libraries }}
78
124
sketch-paths : " ${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.sketch-paths }}"
79
125
size-report-sketch : ' ArduinoIoTCloud_Travis_CI'
80
126
enable-size-deltas-report : ' true'
0 commit comments