From 475ddcf8827c921602b6ce592494b81dfd647b4e Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 29 Mar 2021 22:09:24 -0700 Subject: [PATCH 1/2] 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 --- .github/workflows/compile-examples.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 0d15add..1cf5f56 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -37,20 +37,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 @@ -59,7 +79,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: "" @@ -76,9 +97,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 }} From 77f7e260a9fe1633a9f9f2db9afa9c94ba110e99 Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 29 Mar 2021 22:31:37 -0700 Subject: [PATCH 2/2] Name matrix jobs after the FQBN This is a purely cosmetic change that causes the matrix jobs to be named like "arduino:avr:nano" rather than "build (arduino:avr:nano, true, false)". --- .github/workflows/compile-examples.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 1cf5f56..00b21f2 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -19,6 +19,7 @@ on: jobs: build: + name: ${{ matrix.board.fqbn }} runs-on: ubuntu-latest env: