Skip to content

Update "Compile Examples" CI workflow for compatibility with Ethernet examples #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:

jobs:
build:
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest

env:
Expand All @@ -37,20 +38,40 @@ jobs:
matrix:
board:
- fqbn: arduino:avr:nano
ethernet: true
nina: false
- fqbn: arduino:avr:leonardo
ethernet: true
nina: false
- fqbn: arduino:megaavr:uno2018:mode=off
ethernet: true
nina: true
- fqbn: arduino:samd:mkrwifi1010
ethernet: true
nina: true
- fqbn: arduino:mbed:nano33ble
ethernet: false
nina: false
- fqbn: arduino:mbed:envie_m7
ethernet: false
nina: false

# Make board type-specific customizations to the matrix jobs
include:
- board:
# Boards with Ethernet library support
ethernet: true
# Install these libraries in addition to the ones defined by env.UNIVERSAL_LIBRARIES
ethernet-libraries: |
- name: Ethernet
# Compile these sketches in addition to the ones defined by env.UNIVERSAL_SKETCH_PATHS
ethernet-sketch-paths: |
- examples/TCP/EthernetModbusClientToggle
- examples/TCP/EthernetModbusServerLED
- board:
ethernet: false
ethernet-libraries: ""
ethernet-sketch-paths: ""
- board:
# Boards with NINA-W102 module
nina: true
Expand All @@ -59,7 +80,8 @@ jobs:
- name: WiFiNINA
# Compile these sketches in addition to the ones defined by env.UNIVERSAL_SKETCH_PATHS
nina-sketch-paths: |
- examples/TCP
- examples/TCP/WiFiModbusClientToggle
- examples/TCP/WiFiModbusServerLED
- board:
nina: false
nina-libraries: ""
Expand All @@ -76,9 +98,11 @@ jobs:
fqbn: ${{ matrix.board.fqbn }}
libraries: |
${{ env.UNIVERSAL_LIBRARIES }}
${{ matrix.ethernet-libraries }}
${{ matrix.nina-libraries }}
sketch-paths: |
${{ env.UNIVERSAL_SKETCH_PATHS }}
${{ matrix.ethernet-sketch-paths }}
${{ matrix.nina-sketch-paths }}
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
Expand Down