From ecabe7b48c6ed0ade6e64740783d247220a562f9 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Thu, 14 Aug 2025 11:14:39 +0200 Subject: [PATCH 1/4] Update dependencies --- examples/Logger/sketch.yaml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/examples/Logger/sketch.yaml b/examples/Logger/sketch.yaml index 4f09a49..356d8e1 100644 --- a/examples/Logger/sketch.yaml +++ b/examples/Logger/sketch.yaml @@ -3,22 +3,20 @@ profiles: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: - - platform: arduino:mbed_portenta (4.1.1) + - platform: arduino:mbed_portenta (4.4.1) libraries: - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) arduino:renesas_portenta:portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (1.0.5) + - platform: arduino:renesas_portenta (1.5.0) libraries: - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) arduino:mbed_opta:opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta @@ -26,6 +24,5 @@ profiles: - 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 + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) \ No newline at end of file From eb0abff9cf02fb391756bbaf1b1bac1a522ac5b9 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Thu, 14 Aug 2025 10:39:26 +0200 Subject: [PATCH 2/4] Use YAML style compile flags --- .github/workflows/compile-examples-profiles.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/compile-examples-profiles.yml b/.github/workflows/compile-examples-profiles.yml index 1d63730..46a303b 100644 --- a/.github/workflows/compile-examples-profiles.yml +++ b/.github/workflows/compile-examples-profiles.yml @@ -47,16 +47,10 @@ jobs: 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: @@ -67,16 +61,20 @@ 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 }} + fqbn: ${{ matrix.board.fqbn }} + cli-compile-flags: | + - --profile + - ${{ matrix.board.fqbn }} enable-deltas-report: true sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} + verbose: false - 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 }} + path: ${{ env.SKETCHES_REPORTS_PATH }} \ No newline at end of file From 6ad5986d48d9bb243cb430a5afd06b95d131bcad Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Thu, 14 Aug 2025 11:38:56 +0200 Subject: [PATCH 3/4] Add local library to search path --- examples/Logger/sketch.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/Logger/sketch.yaml b/examples/Logger/sketch.yaml index 356d8e1..a18d3cd 100644 --- a/examples/Logger/sketch.yaml +++ b/examples/Logger/sketch.yaml @@ -8,6 +8,7 @@ profiles: - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.1) - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:renesas_portenta:portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 @@ -17,6 +18,7 @@ profiles: - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.1) - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:mbed_opta:opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta @@ -25,4 +27,5 @@ profiles: libraries: - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.1) - - ArduinoRS485 (1.1.0) \ No newline at end of file + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root \ No newline at end of file From 292af485871461dd5a3513f0affaccffdc64da14 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Thu, 14 Aug 2025 15:37:27 +0200 Subject: [PATCH 4/4] Apply profile to other sketches --- .../AdvancedUSBInternalOperations/sketch.yaml | 23 +++++++------- examples/BackupInternalPartitions/sketch.yaml | 23 +++++++------- examples/Callbacks/sketch.yaml | 23 +++++++------- .../InternalStoragePartitioning/sketch.yaml | 23 +++++++------- examples/Logger/sketch.yaml | 1 - examples/SimpleStorageWriteRead/sketch.yaml | 23 +++++++------- extras/tests/TestExisting/sketch.yaml | 30 +++++++++++++++++++ extras/tests/TestFileOperations/sketch.yaml | 30 +++++++++++++++++++ extras/tests/TestFolderOperations/sketch.yaml | 30 +++++++++++++++++++ .../tests/TestRepeatedFormatMount/sketch.yaml | 30 +++++++++++++++++++ 10 files changed, 175 insertions(+), 61 deletions(-) create mode 100644 extras/tests/TestExisting/sketch.yaml create mode 100644 extras/tests/TestFileOperations/sketch.yaml create mode 100644 extras/tests/TestFolderOperations/sketch.yaml create mode 100644 extras/tests/TestRepeatedFormatMount/sketch.yaml diff --git a/examples/AdvancedUSBInternalOperations/sketch.yaml b/examples/AdvancedUSBInternalOperations/sketch.yaml index 4f09a49..9fcb8d0 100644 --- a/examples/AdvancedUSBInternalOperations/sketch.yaml +++ b/examples/AdvancedUSBInternalOperations/sketch.yaml @@ -3,22 +3,21 @@ profiles: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: - - platform: arduino:mbed_portenta (4.1.1) + - platform: arduino:mbed_portenta (4.4.1) libraries: - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:renesas_portenta:portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (1.0.5) + - platform: arduino:renesas_portenta (1.5.0) libraries: - - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:mbed_opta:opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta @@ -26,6 +25,6 @@ profiles: - 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 + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root \ No newline at end of file diff --git a/examples/BackupInternalPartitions/sketch.yaml b/examples/BackupInternalPartitions/sketch.yaml index 4f09a49..9fcb8d0 100644 --- a/examples/BackupInternalPartitions/sketch.yaml +++ b/examples/BackupInternalPartitions/sketch.yaml @@ -3,22 +3,21 @@ profiles: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: - - platform: arduino:mbed_portenta (4.1.1) + - platform: arduino:mbed_portenta (4.4.1) libraries: - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:renesas_portenta:portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (1.0.5) + - platform: arduino:renesas_portenta (1.5.0) libraries: - - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:mbed_opta:opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta @@ -26,6 +25,6 @@ profiles: - 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 + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root \ No newline at end of file diff --git a/examples/Callbacks/sketch.yaml b/examples/Callbacks/sketch.yaml index 4f09a49..9fcb8d0 100644 --- a/examples/Callbacks/sketch.yaml +++ b/examples/Callbacks/sketch.yaml @@ -3,22 +3,21 @@ profiles: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: - - platform: arduino:mbed_portenta (4.1.1) + - platform: arduino:mbed_portenta (4.4.1) libraries: - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:renesas_portenta:portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (1.0.5) + - platform: arduino:renesas_portenta (1.5.0) libraries: - - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:mbed_opta:opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta @@ -26,6 +25,6 @@ profiles: - 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 + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root \ No newline at end of file diff --git a/examples/InternalStoragePartitioning/sketch.yaml b/examples/InternalStoragePartitioning/sketch.yaml index 4f09a49..9fcb8d0 100644 --- a/examples/InternalStoragePartitioning/sketch.yaml +++ b/examples/InternalStoragePartitioning/sketch.yaml @@ -3,22 +3,21 @@ profiles: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: - - platform: arduino:mbed_portenta (4.1.1) + - platform: arduino:mbed_portenta (4.4.1) libraries: - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:renesas_portenta:portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (1.0.5) + - platform: arduino:renesas_portenta (1.5.0) libraries: - - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:mbed_opta:opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta @@ -26,6 +25,6 @@ profiles: - 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 + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root \ No newline at end of file diff --git a/examples/Logger/sketch.yaml b/examples/Logger/sketch.yaml index a18d3cd..9fcb8d0 100644 --- a/examples/Logger/sketch.yaml +++ b/examples/Logger/sketch.yaml @@ -15,7 +15,6 @@ profiles: platforms: - platform: arduino:renesas_portenta (1.5.0) libraries: - - Arduino_USBHostMbed5 (0.3.1) - Arduino_POSIXStorage (1.2.1) - ArduinoRS485 (1.1.0) - dir: ../../ # Relative path to the library root diff --git a/examples/SimpleStorageWriteRead/sketch.yaml b/examples/SimpleStorageWriteRead/sketch.yaml index 4f09a49..9fcb8d0 100644 --- a/examples/SimpleStorageWriteRead/sketch.yaml +++ b/examples/SimpleStorageWriteRead/sketch.yaml @@ -3,22 +3,21 @@ profiles: notes: Portenta H7 family & Portenta Machine Control fqbn: arduino:mbed_portenta:envie_m7 platforms: - - platform: arduino:mbed_portenta (4.1.1) + - platform: arduino:mbed_portenta (4.4.1) libraries: - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:renesas_portenta:portenta_c33: notes: Portenta C33 fqbn: arduino:renesas_portenta:portenta_c33 platforms: - - platform: arduino:renesas_portenta (1.0.5) + - platform: arduino:renesas_portenta (1.5.0) libraries: - - Arduino_USBHostMbed5 (0.3.1) - - Arduino_POSIXStorage (1.2.0) - - Arduino_UnifiedStorage (1.1.0) - - ArduinoRS485 (1.0.5) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root arduino:mbed_opta:opta: notes: Portenta Opta family fqbn: arduino:mbed_opta:opta @@ -26,6 +25,6 @@ profiles: - 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 + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../ # Relative path to the library root \ No newline at end of file diff --git a/extras/tests/TestExisting/sketch.yaml b/extras/tests/TestExisting/sketch.yaml new file mode 100644 index 0000000..a873980 --- /dev/null +++ b/extras/tests/TestExisting/sketch.yaml @@ -0,0 +1,30 @@ +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.4.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (1.5.0) + libraries: + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root + arduino:mbed_opta:opta: + notes: Portenta Opta family + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root \ No newline at end of file diff --git a/extras/tests/TestFileOperations/sketch.yaml b/extras/tests/TestFileOperations/sketch.yaml new file mode 100644 index 0000000..a873980 --- /dev/null +++ b/extras/tests/TestFileOperations/sketch.yaml @@ -0,0 +1,30 @@ +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.4.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (1.5.0) + libraries: + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root + arduino:mbed_opta:opta: + notes: Portenta Opta family + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root \ No newline at end of file diff --git a/extras/tests/TestFolderOperations/sketch.yaml b/extras/tests/TestFolderOperations/sketch.yaml new file mode 100644 index 0000000..a873980 --- /dev/null +++ b/extras/tests/TestFolderOperations/sketch.yaml @@ -0,0 +1,30 @@ +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.4.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (1.5.0) + libraries: + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root + arduino:mbed_opta:opta: + notes: Portenta Opta family + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root \ No newline at end of file diff --git a/extras/tests/TestRepeatedFormatMount/sketch.yaml b/extras/tests/TestRepeatedFormatMount/sketch.yaml new file mode 100644 index 0000000..a873980 --- /dev/null +++ b/extras/tests/TestRepeatedFormatMount/sketch.yaml @@ -0,0 +1,30 @@ +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.4.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root + arduino:renesas_portenta:portenta_c33: + notes: Portenta C33 + fqbn: arduino:renesas_portenta:portenta_c33 + platforms: + - platform: arduino:renesas_portenta (1.5.0) + libraries: + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root + arduino:mbed_opta:opta: + notes: Portenta Opta family + fqbn: arduino:mbed_opta:opta + platforms: + - platform: arduino:mbed_opta (4.1.1) + libraries: + - Arduino_USBHostMbed5 (0.3.1) + - Arduino_POSIXStorage (1.2.1) + - ArduinoRS485 (1.1.0) + - dir: ../../../ # Relative path to the library root \ No newline at end of file