Skip to content

Commit 85e7ef7

Browse files
committed
Fixing github workflow
1 parent a3c8b3f commit 85e7ef7

File tree

1 file changed

+55
-9
lines changed

1 file changed

+55
-9
lines changed

Diff for: .github/workflows/compile-examples.yml

+55-9
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ jobs:
1818

1919
env:
2020
# 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
2228
# sketch paths to compile (recursive) for all boards
2329
UNIVERSAL_SKETCH_PATHS: '"examples/ArduinoIoTCloud-Advanced" "examples/ArduinoIoTCloud-Basic" "examples/utility/ArduinoIoTCloud_Travis_CI"'
2430

@@ -33,34 +39,73 @@ jobs:
3339
{"fqbn": "arduino:samd:mkrwan1300", "type": "wan"},
3440
{"fqbn": "arduino:samd:mkrgsm1400", "type": "gsm"},
3541
{"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"}
3743
]
3844

3945
# make board type-specific customizations to the matrix jobs
4046
include:
4147
# WiFi boards
4248
- board:
4349
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
4562
sketch-paths: '"examples/utility/Provisioning" "examples/utility/WiFi_Cloud_Blink"'
4663
# LoRaWAN boards
4764
- board:
4865
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
5074
sketch-paths:
5175
# GSM boards
5276
- board:
5377
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
5588
sketch-paths: '"examples/utility/Provisioning" "examples/utility/GSM_Cloud_Blink"'
5689
# NB boards
5790
- board:
5891
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
60101
sketch-paths: '"examples/utility/Provisioning" "examples/utility/NB_Cloud_Blink"'
61102
# ESP8266 boards
62103
- board:
63104
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
64109
libraries:
65110
sketch-paths: '"examples/utility/WiFi_Cloud_Blink_with_security_credentials"'
66111

@@ -71,10 +116,11 @@ jobs:
71116
- name: Compile examples
72117
uses: arduino/actions/libraries/compile-examples@master
73118
with:
74-
platforms |
75-
- source-url: https://github.com/arduino/ArduinoCore-samd/archive/master.zip
119+
platforms: ${{ matrix.platforms }}
76120
fqbn: ${{ matrix.board.fqbn }}
77-
libraries: "${{ env.UNIVERSAL_LIBRARIES }} ${{ matrix.libraries }}"
121+
libraries: |
122+
${{ env.UNIVERSAL_LIBRARIES }}
123+
${{ matrix.libraries }}
78124
sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.sketch-paths }}"
79125
size-report-sketch: 'ArduinoIoTCloud_Travis_CI'
80126
enable-size-deltas-report: 'true'

0 commit comments

Comments
 (0)