From 77d9c80606886257549b94077279f70e2d91f3dd Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Tue, 5 Mar 2024 16:37:58 +0100 Subject: [PATCH 01/10] ci: add sketch paths to UNIVERSAL_SKETCH_PATHS --- .github/workflows/compile-examples.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 950e0c3..ba866d4 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -24,9 +24,12 @@ on: env: UNIVERSAL_SKETCH_PATHS: | - extras/tests - - examples/SimpleStorageWriteRead - examples/AdvancedUSBInternalOperations - examples/BackupInternalPartitions + - examples/Callbacks + - examples/InternalStoragePartitioning + - examples/Logger + - examples/SimpleStorageWriteRead SKETCHES_REPORTS_PATH: sketches-reports SKETCHES_REPORTS_ARTIFACT_NAME: sketches-reports From 5b5ce45092c5adf6f2eb7f77489cd4f418c47f8b Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:18:30 +0100 Subject: [PATCH 02/10] ci: add build profiles for all exampes --- .../workflows/compile-examples-profiles.yml | 80 +++++++++++++++++++ .../AdvancedUSBInternalOperations/sketch.yaml | 31 +++++++ examples/BackupInternalPartitions/sketch.yaml | 31 +++++++ examples/Callbacks/sketch.yaml | 31 +++++++ .../InternalStoragePartitioning/sketch.yaml | 31 +++++++ examples/Logger/sketch.yaml | 31 +++++++ examples/SimpleStorageWriteRead/sketch.yaml | 31 +++++++ 7 files changed, 266 insertions(+) create mode 100644 .github/workflows/compile-examples-profiles.yml create mode 100644 examples/AdvancedUSBInternalOperations/sketch.yaml create mode 100644 examples/BackupInternalPartitions/sketch.yaml create mode 100644 examples/Callbacks/sketch.yaml create mode 100644 examples/InternalStoragePartitioning/sketch.yaml create mode 100644 examples/Logger/sketch.yaml create mode 100644 examples/SimpleStorageWriteRead/sketch.yaml diff --git a/.github/workflows/compile-examples-profiles.yml b/.github/workflows/compile-examples-profiles.yml new file mode 100644 index 0000000..cc954e0 --- /dev/null +++ b/.github/workflows/compile-examples-profiles.yml @@ -0,0 +1,80 @@ +# Source: https://github.com/per1234/.github/blob/main/workflow-templates/compile-examples-private.md +name: Compile Examples with Build Profiles + +# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows +on: + schedule: + # Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms). + - cron: "0 8 * * TUE" + workflow_dispatch: + repository_dispatch: + +env: + UNIVERSAL_SKETCH_PATHS: | + - extras/tests + - examples/AdvancedUSBInternalOperations + - examples/BackupInternalPartitions + - examples/Callbacks + - examples/InternalStoragePartitioning + - examples/Logger + - examples/SimpleStorageWriteRead + SKETCHES_REPORTS_PATH: sketches-reports + SKETCHES_REPORTS_ARTIFACT_NAME: sketches-reports + +jobs: + build: + name: ${{ matrix.board.fqbn }} + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + + strategy: + fail-fast: false + + matrix: + board: + - fqbn: arduino:mbed_portenta:envie_m7 + platforms: | + - name: arduino:mbed_portenta + artifact-name-suffix: arduino-mbed_portenta-envie_m7 + - fqbn: arduino:renesas_portenta:portenta_c33 + platforms: | + - name: arduino:renesas_portenta + artifact-name-suffix: arduino-renesas_portenta-portenta_c33 + - fqbn: arduino:mbed_opta:opta + platforms: | + - name: arduino:mbed_opta + artifact-name-suffix: arduino-mbed_opta-opta + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Compile examples + uses: arduino/compile-sketches@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + cli-compile-flags: --profile ${{ matrix.board.fqbn }} + fqbn: ${{ matrix.board.fqbn }} + platforms: ${{ matrix.board.platforms }} + libraries: | + # Install the library from the local path. + - source-path: ./ + - name: Arduino_USBHostMbed5 + - name: Arduino_POSIXStorage + - name: ArduinoRS485 + # Additional library dependencies can be listed here. + # See: https://github.com/arduino/compile-sketches#libraries + sketch-paths: | + ${{ env.UNIVERSAL_SKETCH_PATHS }} + ${{ matrix.board.additional-sketch-paths }} + enable-deltas-report: true + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} + + - name: Save sketches report as workflow artifact + uses: actions/upload-artifact@v4 + with: + if-no-files-found: error + name: sketches-report-${{ matrix.board.artifact-name-suffix }} + path: ${{ env.SKETCHES_REPORTS_PATH }} diff --git a/examples/AdvancedUSBInternalOperations/sketch.yaml b/examples/AdvancedUSBInternalOperations/sketch.yaml new file mode 100644 index 0000000..be9cbd0 --- /dev/null +++ b/examples/AdvancedUSBInternalOperations/sketch.yaml @@ -0,0 +1,31 @@ +profiles: + arduino:mbed_portenta:envie_m7: + notes: Portenta H7 family & Portenta Machine Control + fqbn: arduino:mbed_portenta:envie_m7 + platforms: + - platform: arduino:mbed_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:mbed_opta:opta: + notes: Portenta Opta + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) \ No newline at end of file diff --git a/examples/BackupInternalPartitions/sketch.yaml b/examples/BackupInternalPartitions/sketch.yaml new file mode 100644 index 0000000..be9cbd0 --- /dev/null +++ b/examples/BackupInternalPartitions/sketch.yaml @@ -0,0 +1,31 @@ +profiles: + arduino:mbed_portenta:envie_m7: + notes: Portenta H7 family & Portenta Machine Control + fqbn: arduino:mbed_portenta:envie_m7 + platforms: + - platform: arduino:mbed_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:mbed_opta:opta: + notes: Portenta Opta + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) \ No newline at end of file diff --git a/examples/Callbacks/sketch.yaml b/examples/Callbacks/sketch.yaml new file mode 100644 index 0000000..be9cbd0 --- /dev/null +++ b/examples/Callbacks/sketch.yaml @@ -0,0 +1,31 @@ +profiles: + arduino:mbed_portenta:envie_m7: + notes: Portenta H7 family & Portenta Machine Control + fqbn: arduino:mbed_portenta:envie_m7 + platforms: + - platform: arduino:mbed_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:mbed_opta:opta: + notes: Portenta Opta + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) \ No newline at end of file diff --git a/examples/InternalStoragePartitioning/sketch.yaml b/examples/InternalStoragePartitioning/sketch.yaml new file mode 100644 index 0000000..be9cbd0 --- /dev/null +++ b/examples/InternalStoragePartitioning/sketch.yaml @@ -0,0 +1,31 @@ +profiles: + arduino:mbed_portenta:envie_m7: + notes: Portenta H7 family & Portenta Machine Control + fqbn: arduino:mbed_portenta:envie_m7 + platforms: + - platform: arduino:mbed_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:mbed_opta:opta: + notes: Portenta Opta + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) \ No newline at end of file diff --git a/examples/Logger/sketch.yaml b/examples/Logger/sketch.yaml new file mode 100644 index 0000000..be9cbd0 --- /dev/null +++ b/examples/Logger/sketch.yaml @@ -0,0 +1,31 @@ +profiles: + arduino:mbed_portenta:envie_m7: + notes: Portenta H7 family & Portenta Machine Control + fqbn: arduino:mbed_portenta:envie_m7 + platforms: + - platform: arduino:mbed_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:mbed_opta:opta: + notes: Portenta Opta + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) \ No newline at end of file diff --git a/examples/SimpleStorageWriteRead/sketch.yaml b/examples/SimpleStorageWriteRead/sketch.yaml new file mode 100644 index 0000000..be9cbd0 --- /dev/null +++ b/examples/SimpleStorageWriteRead/sketch.yaml @@ -0,0 +1,31 @@ +profiles: + arduino:mbed_portenta:envie_m7: + notes: Portenta H7 family & Portenta Machine Control + fqbn: arduino:mbed_portenta:envie_m7 + platforms: + - platform: arduino:mbed_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) + arduino:mbed_opta:opta: + notes: Portenta Opta + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.0) + - Arduino_UnifiedStorage (1.1.0) + - ArduinoRS485 (1.0.5) \ No newline at end of file From 060783a443cf67ddb123e309a7ba3b0dc85fb694 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:33:39 +0100 Subject: [PATCH 03/10] ci: correct `mbed_portenta` version --- .github/workflows/compile-examples-profiles.yml | 10 ---------- examples/AdvancedUSBInternalOperations/sketch.yaml | 4 ++-- examples/BackupInternalPartitions/sketch.yaml | 4 ++-- examples/Callbacks/sketch.yaml | 4 ++-- examples/InternalStoragePartitioning/sketch.yaml | 4 ++-- examples/Logger/sketch.yaml | 4 ++-- examples/SimpleStorageWriteRead/sketch.yaml | 4 ++-- 7 files changed, 12 insertions(+), 22 deletions(-) diff --git a/.github/workflows/compile-examples-profiles.yml b/.github/workflows/compile-examples-profiles.yml index cc954e0..c8c0d48 100644 --- a/.github/workflows/compile-examples-profiles.yml +++ b/.github/workflows/compile-examples-profiles.yml @@ -56,16 +56,6 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} cli-compile-flags: --profile ${{ matrix.board.fqbn }} - fqbn: ${{ matrix.board.fqbn }} - platforms: ${{ matrix.board.platforms }} - libraries: | - # Install the library from the local path. - - source-path: ./ - - name: Arduino_USBHostMbed5 - - name: Arduino_POSIXStorage - - name: ArduinoRS485 - # Additional library dependencies can be listed here. - # See: https://github.com/arduino/compile-sketches#libraries sketch-paths: | ${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.board.additional-sketch-paths }} diff --git a/examples/AdvancedUSBInternalOperations/sketch.yaml b/examples/AdvancedUSBInternalOperations/sketch.yaml index be9cbd0..4f09a49 100644 --- a/examples/AdvancedUSBInternalOperations/sketch.yaml +++ b/examples/AdvancedUSBInternalOperations/sketch.yaml @@ -13,14 +13,14 @@ profiles: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (4.1.1) + - platform: arduino:renesas_portenta (1.0.5) libraries: - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) arduino:mbed_opta:opta: - notes: Portenta Opta + notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: - platform: arduino:mbed_opta (4.1.1) diff --git a/examples/BackupInternalPartitions/sketch.yaml b/examples/BackupInternalPartitions/sketch.yaml index be9cbd0..4f09a49 100644 --- a/examples/BackupInternalPartitions/sketch.yaml +++ b/examples/BackupInternalPartitions/sketch.yaml @@ -13,14 +13,14 @@ profiles: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (4.1.1) + - platform: arduino:renesas_portenta (1.0.5) libraries: - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) arduino:mbed_opta:opta: - notes: Portenta Opta + notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: - platform: arduino:mbed_opta (4.1.1) diff --git a/examples/Callbacks/sketch.yaml b/examples/Callbacks/sketch.yaml index be9cbd0..4f09a49 100644 --- a/examples/Callbacks/sketch.yaml +++ b/examples/Callbacks/sketch.yaml @@ -13,14 +13,14 @@ profiles: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (4.1.1) + - platform: arduino:renesas_portenta (1.0.5) libraries: - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) arduino:mbed_opta:opta: - notes: Portenta Opta + notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: - platform: arduino:mbed_opta (4.1.1) diff --git a/examples/InternalStoragePartitioning/sketch.yaml b/examples/InternalStoragePartitioning/sketch.yaml index be9cbd0..4f09a49 100644 --- a/examples/InternalStoragePartitioning/sketch.yaml +++ b/examples/InternalStoragePartitioning/sketch.yaml @@ -13,14 +13,14 @@ profiles: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (4.1.1) + - platform: arduino:renesas_portenta (1.0.5) libraries: - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) arduino:mbed_opta:opta: - notes: Portenta Opta + notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: - platform: arduino:mbed_opta (4.1.1) diff --git a/examples/Logger/sketch.yaml b/examples/Logger/sketch.yaml index be9cbd0..4f09a49 100644 --- a/examples/Logger/sketch.yaml +++ b/examples/Logger/sketch.yaml @@ -13,14 +13,14 @@ profiles: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (4.1.1) + - platform: arduino:renesas_portenta (1.0.5) libraries: - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) arduino:mbed_opta:opta: - notes: Portenta Opta + notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: - platform: arduino:mbed_opta (4.1.1) diff --git a/examples/SimpleStorageWriteRead/sketch.yaml b/examples/SimpleStorageWriteRead/sketch.yaml index be9cbd0..4f09a49 100644 --- a/examples/SimpleStorageWriteRead/sketch.yaml +++ b/examples/SimpleStorageWriteRead/sketch.yaml @@ -13,14 +13,14 @@ profiles: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (4.1.1) + - platform: arduino:renesas_portenta (1.0.5) libraries: - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) arduino:mbed_opta:opta: - notes: Portenta Opta + notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: - platform: arduino:mbed_opta (4.1.1) From f8d2f94cf4715d816cdf621429d8e583026bb8e9 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:42:48 +0100 Subject: [PATCH 04/10] ci: set compiler strings to YAML --- .github/workflows/compile-examples-profiles.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples-profiles.yml b/.github/workflows/compile-examples-profiles.yml index c8c0d48..e2f42d3 100644 --- a/.github/workflows/compile-examples-profiles.yml +++ b/.github/workflows/compile-examples-profiles.yml @@ -55,7 +55,8 @@ jobs: uses: arduino/compile-sketches@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} - cli-compile-flags: --profile ${{ matrix.board.fqbn }} + cli-compile-flags: | + - --profile="${{ matrix.board.fqbn }}" sketch-paths: | ${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.board.additional-sketch-paths }} From b53ef80609f4bd84debed86cc9fdddc5a7d5d80b Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:44:56 +0100 Subject: [PATCH 05/10] ci: remove extra quotation marks --- .github/workflows/compile-examples-profiles.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples-profiles.yml b/.github/workflows/compile-examples-profiles.yml index e2f42d3..512c11a 100644 --- a/.github/workflows/compile-examples-profiles.yml +++ b/.github/workflows/compile-examples-profiles.yml @@ -56,7 +56,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} cli-compile-flags: | - - --profile="${{ matrix.board.fqbn }}" + - --profile=${{ matrix.board.fqbn }} sketch-paths: | ${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.board.additional-sketch-paths }} From 875a76eb2dcf5d743d97ffefc97e383908e916d0 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:58:03 +0100 Subject: [PATCH 06/10] ci: modify name in matrix --- .../workflows/compile-examples-profiles.yml | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/compile-examples-profiles.yml b/.github/workflows/compile-examples-profiles.yml index 512c11a..a2a1718 100644 --- a/.github/workflows/compile-examples-profiles.yml +++ b/.github/workflows/compile-examples-profiles.yml @@ -10,14 +10,6 @@ on: repository_dispatch: env: - UNIVERSAL_SKETCH_PATHS: | - - extras/tests - - examples/AdvancedUSBInternalOperations - - examples/BackupInternalPartitions - - examples/Callbacks - - examples/InternalStoragePartitioning - - examples/Logger - - examples/SimpleStorageWriteRead SKETCHES_REPORTS_PATH: sketches-reports SKETCHES_REPORTS_ARTIFACT_NAME: sketches-reports @@ -34,15 +26,18 @@ jobs: matrix: board: - - fqbn: arduino:mbed_portenta:envie_m7 + - name: envie_m7 + fqbn: arduino:mbed_portenta:envie_m7 platforms: | - name: arduino:mbed_portenta artifact-name-suffix: arduino-mbed_portenta-envie_m7 - - fqbn: arduino:renesas_portenta:portenta_c33 + - name: portenta_c33 + fqbn: arduino:renesas_portenta:portenta_c33 platforms: | - name: arduino:renesas_portenta artifact-name-suffix: arduino-renesas_portenta-portenta_c33 - - fqbn: arduino:mbed_opta:opta + - name: opta + fqbn: arduino:mbed_opta:opta platforms: | - name: arduino:mbed_opta artifact-name-suffix: arduino-mbed_opta-opta @@ -55,13 +50,10 @@ jobs: uses: arduino/compile-sketches@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} - cli-compile-flags: | - - --profile=${{ matrix.board.fqbn }} - sketch-paths: | - ${{ env.UNIVERSAL_SKETCH_PATHS }} - ${{ matrix.board.additional-sketch-paths }} enable-deltas-report: true sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} + cli-compile-flags: | + - --profile=${{ matrix.board.name }} - name: Save sketches report as workflow artifact uses: actions/upload-artifact@v4 From 83afc5b4c6f31cd18c5d39000eaa2fb8beaa2bca Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:59:08 +0100 Subject: [PATCH 07/10] ci: rename profiles --- examples/AdvancedUSBInternalOperations/sketch.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/AdvancedUSBInternalOperations/sketch.yaml b/examples/AdvancedUSBInternalOperations/sketch.yaml index 4f09a49..338561f 100644 --- a/examples/AdvancedUSBInternalOperations/sketch.yaml +++ b/examples/AdvancedUSBInternalOperations/sketch.yaml @@ -1,5 +1,5 @@ profiles: - arduino:mbed_portenta:envie_m7: + envie_m7: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: @@ -9,7 +9,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:renesas_portenta:portenta_c33: + portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: @@ -19,7 +19,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:mbed_opta:opta: + opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: From 06aa57e0a08a43adfaee927e4796f18904d640eb Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Wed, 6 Mar 2024 18:08:41 +0100 Subject: [PATCH 08/10] rename profiles --- examples/BackupInternalPartitions/sketch.yaml | 6 +++--- examples/Callbacks/sketch.yaml | 6 +++--- examples/InternalStoragePartitioning/sketch.yaml | 6 +++--- examples/Logger/sketch.yaml | 6 +++--- examples/SimpleStorageWriteRead/sketch.yaml | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/examples/BackupInternalPartitions/sketch.yaml b/examples/BackupInternalPartitions/sketch.yaml index 4f09a49..338561f 100644 --- a/examples/BackupInternalPartitions/sketch.yaml +++ b/examples/BackupInternalPartitions/sketch.yaml @@ -1,5 +1,5 @@ profiles: - arduino:mbed_portenta:envie_m7: + envie_m7: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: @@ -9,7 +9,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:renesas_portenta:portenta_c33: + portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: @@ -19,7 +19,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:mbed_opta:opta: + opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: diff --git a/examples/Callbacks/sketch.yaml b/examples/Callbacks/sketch.yaml index 4f09a49..338561f 100644 --- a/examples/Callbacks/sketch.yaml +++ b/examples/Callbacks/sketch.yaml @@ -1,5 +1,5 @@ profiles: - arduino:mbed_portenta:envie_m7: + envie_m7: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: @@ -9,7 +9,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:renesas_portenta:portenta_c33: + portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: @@ -19,7 +19,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:mbed_opta:opta: + opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: diff --git a/examples/InternalStoragePartitioning/sketch.yaml b/examples/InternalStoragePartitioning/sketch.yaml index 4f09a49..338561f 100644 --- a/examples/InternalStoragePartitioning/sketch.yaml +++ b/examples/InternalStoragePartitioning/sketch.yaml @@ -1,5 +1,5 @@ profiles: - arduino:mbed_portenta:envie_m7: + envie_m7: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: @@ -9,7 +9,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:renesas_portenta:portenta_c33: + portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: @@ -19,7 +19,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:mbed_opta:opta: + opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: diff --git a/examples/Logger/sketch.yaml b/examples/Logger/sketch.yaml index 4f09a49..338561f 100644 --- a/examples/Logger/sketch.yaml +++ b/examples/Logger/sketch.yaml @@ -1,5 +1,5 @@ profiles: - arduino:mbed_portenta:envie_m7: + envie_m7: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: @@ -9,7 +9,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:renesas_portenta:portenta_c33: + portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: @@ -19,7 +19,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:mbed_opta:opta: + opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: diff --git a/examples/SimpleStorageWriteRead/sketch.yaml b/examples/SimpleStorageWriteRead/sketch.yaml index 4f09a49..338561f 100644 --- a/examples/SimpleStorageWriteRead/sketch.yaml +++ b/examples/SimpleStorageWriteRead/sketch.yaml @@ -1,5 +1,5 @@ profiles: - arduino:mbed_portenta:envie_m7: + envie_m7: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: @@ -9,7 +9,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:renesas_portenta:portenta_c33: + portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: @@ -19,7 +19,7 @@ profiles: - Arduino_POSIXStorage (1.2.0) - Arduino_UnifiedStorage (1.1.0) - ArduinoRS485 (1.0.5) - arduino:mbed_opta:opta: + opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta platforms: From a768985dd53dfaa611d789e062f2fd26cbce0457 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Wed, 6 Mar 2024 18:37:50 +0100 Subject: [PATCH 09/10] ci: manually add fqbn --- .github/workflows/compile-examples-profiles.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile-examples-profiles.yml b/.github/workflows/compile-examples-profiles.yml index a2a1718..9392a84 100644 --- a/.github/workflows/compile-examples-profiles.yml +++ b/.github/workflows/compile-examples-profiles.yml @@ -54,6 +54,7 @@ jobs: sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} cli-compile-flags: | - --profile=${{ matrix.board.name }} + fqbn: ${{ matrix.board.fqbn }} - name: Save sketches report as workflow artifact uses: actions/upload-artifact@v4 From ddcc9dd7403d5e72874a3816672a6778efcf3537 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Fri, 15 Mar 2024 07:35:25 +0100 Subject: [PATCH 10/10] Add status badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 27c22dd..6cb85f2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 💾 Unified Storage Library -[![Check Arduino](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/check-arduino.yml) [![Compile Examples](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/compile-examples.yml) [![Spell Check](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/spell-check.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/spell-check.yml) [![Sync Labels](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/sync-labels.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/sync-labels.yml) +[![Check Arduino](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/check-arduino.yml) [![Compile Examples](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/compile-examples.yml) [![Compile Examples with Build Profiles](https://github.com/aliphys/Arduino_UnifiedStorage/actions/workflows/compile-examples-profiles.yml/badge.svg)](https://github.com/aliphys/Arduino_UnifiedStorage/actions/workflows/compile-examples-profiles.yml) [![Spell Check](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/spell-check.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/spell-check.yml) [![Sync Labels](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/sync-labels.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_UnifiedStorage/actions/workflows/sync-labels.yml) The Arduino_UnifiedStorage library provides a unified interface to access different types of storage, including internal storage, SD cards, and USB mass storage devices. It simplifies the handling of files and directories across multiple storage mediums on Portenta, Opta, and some Nicla boards.