From ec518fa9e6de44504541dafb2d412877c5d61e27 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Tue, 5 Sep 2023 11:22:49 +0200 Subject: [PATCH 1/3] Use `include:` to specify directories --- .github/workflows/compile-examples.yml | 28 +++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index caa2b8e..4be5431 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -22,6 +22,8 @@ on: repository_dispatch: env: + UNIVERSAL_SKETCH_PATHS: | + - extra/tests SKETCHES_REPORTS_PATH: sketches-reports SKETCHES_REPORTS_ARTIFACT_NAME: sketches-reports @@ -47,6 +49,29 @@ jobs: - fqbn: arduino:mbed_opta:opta platforms: | - name: arduino:mbed_opta + include: + - board: + - fqbn: arduino:mbed_portenta:envie_m7 + additional-sketch-paths: | + - examples/SimpleStorageWriteRead + - examples/PortentaH7Logger + - examples/AdvancedUSBInternalOperations + - examples/BackupInternalPartitions + - board: + - fqbn: arduino:renesas_portenta:portenta_c33 + additional-sketch-paths: | + - examples/SimpleStorageWriteRead + - examples/PortentaH7Logger + - examples/AdvancedUSBInternalOperations + - examples/BackupInternalPartitions + - board: + - fqbn: arduino:mbed_opta:opta + additional-sketch-paths: | + - examples/SimpleStorageWriteRead + - examples/PortentaH7Logger + - examples/AdvancedUSBInternalOperations + - examples/BackupInternalPartitions + steps: @@ -67,7 +92,8 @@ jobs: # Additional library dependencies can be listed here. # See: https://github.com/arduino/compile-sketches#libraries sketch-paths: | - - examples + ${{ env.UNIVERSAL_SKETCH_PATHS }} + ${{ matrix.additional-sketch-paths }} enable-deltas-report: true sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} From 7c3dd7234b31d8816099a75ab0cb8e171b059ace Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Tue, 5 Sep 2023 11:43:30 +0200 Subject: [PATCH 2/3] =?UTF-8?q?Add=20missing=20s=20in=20extras:=20`extras/?= =?UTF-8?q?tests`=20=F0=9F=A4=A6=E2=80=8D=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/compile-examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 4be5431..0a0448f 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -23,7 +23,7 @@ on: env: UNIVERSAL_SKETCH_PATHS: | - - extra/tests + - extras/tests SKETCHES_REPORTS_PATH: sketches-reports SKETCHES_REPORTS_ARTIFACT_NAME: sketches-reports From 773adc91b2544c64561daaf854aa8d8a4d7c593c Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Tue, 5 Sep 2023 12:15:46 +0200 Subject: [PATCH 3/3] `PortentaH7Logger` only `mbed_portenta:envie_m7` --- .github/workflows/compile-examples.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 0a0448f..b01d06c 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -61,14 +61,12 @@ jobs: - fqbn: arduino:renesas_portenta:portenta_c33 additional-sketch-paths: | - examples/SimpleStorageWriteRead - - examples/PortentaH7Logger - examples/AdvancedUSBInternalOperations - examples/BackupInternalPartitions - board: - fqbn: arduino:mbed_opta:opta additional-sketch-paths: | - examples/SimpleStorageWriteRead - - examples/PortentaH7Logger - examples/AdvancedUSBInternalOperations - examples/BackupInternalPartitions