diff --git a/.github/workflows/compile-examples-profiles.yml b/.github/workflows/compile-examples-profiles.yml new file mode 100644 index 0000000..c8c0d48 --- /dev/null +++ b/.github/workflows/compile-examples-profiles.yml @@ -0,0 +1,70 @@ +# 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 }} + 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/.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 diff --git a/examples/AdvancedUSBInternalOperations/sketch.yaml b/examples/AdvancedUSBInternalOperations/sketch.yaml new file mode 100644 index 0000000..4f09a49 --- /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 (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 family + 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..4f09a49 --- /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 (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 family + 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..4f09a49 --- /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 (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 family + 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..4f09a49 --- /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 (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 family + 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..4f09a49 --- /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 (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 family + 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..4f09a49 --- /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 (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 family + 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