Skip to content

Commit e6be25f

Browse files
authored
Merge pull request #53 from per1234/fix-ci
Update "Compile Examples" CI workflow for compatibility with Ethernet examples
2 parents 62098a6 + 77f7e26 commit e6be25f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/compile-examples.yml

+25-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919

2020
jobs:
2121
build:
22+
name: ${{ matrix.board.fqbn }}
2223
runs-on: ubuntu-latest
2324

2425
env:
@@ -37,20 +38,40 @@ jobs:
3738
matrix:
3839
board:
3940
- fqbn: arduino:avr:nano
41+
ethernet: true
4042
nina: false
4143
- fqbn: arduino:avr:leonardo
44+
ethernet: true
4245
nina: false
4346
- fqbn: arduino:megaavr:uno2018:mode=off
47+
ethernet: true
4448
nina: true
4549
- fqbn: arduino:samd:mkrwifi1010
50+
ethernet: true
4651
nina: true
4752
- fqbn: arduino:mbed:nano33ble
53+
ethernet: false
4854
nina: false
4955
- fqbn: arduino:mbed:envie_m7
56+
ethernet: false
5057
nina: false
5158

5259
# Make board type-specific customizations to the matrix jobs
5360
include:
61+
- board:
62+
# Boards with Ethernet library support
63+
ethernet: true
64+
# Install these libraries in addition to the ones defined by env.UNIVERSAL_LIBRARIES
65+
ethernet-libraries: |
66+
- name: Ethernet
67+
# Compile these sketches in addition to the ones defined by env.UNIVERSAL_SKETCH_PATHS
68+
ethernet-sketch-paths: |
69+
- examples/TCP/EthernetModbusClientToggle
70+
- examples/TCP/EthernetModbusServerLED
71+
- board:
72+
ethernet: false
73+
ethernet-libraries: ""
74+
ethernet-sketch-paths: ""
5475
- board:
5576
# Boards with NINA-W102 module
5677
nina: true
@@ -59,7 +80,8 @@ jobs:
5980
- name: WiFiNINA
6081
# Compile these sketches in addition to the ones defined by env.UNIVERSAL_SKETCH_PATHS
6182
nina-sketch-paths: |
62-
- examples/TCP
83+
- examples/TCP/WiFiModbusClientToggle
84+
- examples/TCP/WiFiModbusServerLED
6385
- board:
6486
nina: false
6587
nina-libraries: ""
@@ -76,9 +98,11 @@ jobs:
7698
fqbn: ${{ matrix.board.fqbn }}
7799
libraries: |
78100
${{ env.UNIVERSAL_LIBRARIES }}
101+
${{ matrix.ethernet-libraries }}
79102
${{ matrix.nina-libraries }}
80103
sketch-paths: |
81104
${{ env.UNIVERSAL_SKETCH_PATHS }}
105+
${{ matrix.ethernet-sketch-paths }}
82106
${{ matrix.nina-sketch-paths }}
83107
enable-deltas-report: true
84108
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}

0 commit comments

Comments
 (0)