Skip to content

Commit da93eb4

Browse files
committed
Adding MKR1000, NANO 33 IOT, MKR GSM 1400, MKR NB 1500, MKR WAN 1300/1310 and ESP8266 as CI build targets
1 parent 8c8de83 commit da93eb4

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/compile-examples.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,29 @@ jobs:
77
strategy:
88
matrix:
99
fqbn: [
10+
"arduino:samd:mkr1000",
1011
"arduino:samd:mkrwifi1010",
11-
"arduino:megaavr:uno2018"
12+
"arduino:samd:nano_33_iot",
13+
"arduino:samd:mkrgsm1400",
14+
"arduino:samd:mkrnb1500",
15+
"arduino:samd:mkrwan1300",
16+
"arduino:samd:mkrwan1310",
17+
"arduino:megaavr:uno2018",
18+
'"esp8266:esp8266:huzzah" "https://arduino.esp8266.com/stable/package_esp8266com_index.json"'
1219
]
1320

1421
steps:
1522
- uses: actions/checkout@v1
1623
with:
1724
fetch-depth: 1
18-
- uses: arduino/actions/libraries/compile-examples@master
25+
- name: compile-examples for official Arduino boards
26+
if: startsWith(matrix.fqbn, '"esp8266:esp8266') != true
27+
uses: arduino/actions/libraries/compile-examples@master
1928
with:
2029
fqbn: ${{ matrix.fqbn }}
21-
libraries: WiFiNINA
30+
- name: compile-examples for ESP8266 boards
31+
if: startsWith(matrix.fqbn, '"esp8266:esp8266')
32+
uses: arduino/actions/libraries/compile-examples@master
33+
with:
34+
fqbn: ${{ matrix.fqbn }}
35+
entrypoint: /github/workspace/.github/workflows/install-python-wrapper.sh
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash -x
2+
# This script is used as an alternate entrypoint to allow installing Python 3 (a dependency of
3+
# the ESP8266 core for Arduino) in the Docker container used by the compile-examples action
4+
5+
# Install Python 3
6+
apt-get update && apt-get install -y python3
7+
8+
Run the standard entrypoint script
9+
/entrypoint.sh "$@"

0 commit comments

Comments
 (0)