Skip to content

Commit 475ddcf

Browse files
committed
Update "Compile Examples" CI workflow for compatibility with Ethernet examples
Examples demonstrating the use with Ethernet library have been added. This required an update to the CI configuration: - Install the Ethernet library dependency - Compile these sketches for all boards that are compatible with the Ethernet library
1 parent 62098a6 commit 475ddcf

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/compile-examples.yml

+24-1
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,40 @@ jobs:
3737
matrix:
3838
board:
3939
- fqbn: arduino:avr:nano
40+
ethernet: true
4041
nina: false
4142
- fqbn: arduino:avr:leonardo
43+
ethernet: true
4244
nina: false
4345
- fqbn: arduino:megaavr:uno2018:mode=off
46+
ethernet: true
4447
nina: true
4548
- fqbn: arduino:samd:mkrwifi1010
49+
ethernet: true
4650
nina: true
4751
- fqbn: arduino:mbed:nano33ble
52+
ethernet: false
4853
nina: false
4954
- fqbn: arduino:mbed:envie_m7
55+
ethernet: false
5056
nina: false
5157

5258
# Make board type-specific customizations to the matrix jobs
5359
include:
60+
- board:
61+
# Boards with Ethernet library support
62+
ethernet: true
63+
# Install these libraries in addition to the ones defined by env.UNIVERSAL_LIBRARIES
64+
ethernet-libraries: |
65+
- name: Ethernet
66+
# Compile these sketches in addition to the ones defined by env.UNIVERSAL_SKETCH_PATHS
67+
ethernet-sketch-paths: |
68+
- examples/TCP/EthernetModbusClientToggle
69+
- examples/TCP/EthernetModbusServerLED
70+
- board:
71+
ethernet: false
72+
ethernet-libraries: ""
73+
ethernet-sketch-paths: ""
5474
- board:
5575
# Boards with NINA-W102 module
5676
nina: true
@@ -59,7 +79,8 @@ jobs:
5979
- name: WiFiNINA
6080
# Compile these sketches in addition to the ones defined by env.UNIVERSAL_SKETCH_PATHS
6181
nina-sketch-paths: |
62-
- examples/TCP
82+
- examples/TCP/WiFiModbusClientToggle
83+
- examples/TCP/WiFiModbusServerLED
6384
- board:
6485
nina: false
6586
nina-libraries: ""
@@ -76,9 +97,11 @@ jobs:
7697
fqbn: ${{ matrix.board.fqbn }}
7798
libraries: |
7899
${{ env.UNIVERSAL_LIBRARIES }}
100+
${{ matrix.ethernet-libraries }}
79101
${{ matrix.nina-libraries }}
80102
sketch-paths: |
81103
${{ env.UNIVERSAL_SKETCH_PATHS }}
104+
${{ matrix.ethernet-sketch-paths }}
82105
${{ matrix.nina-sketch-paths }}
83106
enable-deltas-report: true
84107
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}

0 commit comments

Comments
 (0)