From 8c676c5a796d601db979de42f6ad769e89a89074 Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 8 Sep 2022 16:01:42 +0200 Subject: [PATCH 1/2] Use mbed_portenta released core instead of ArduinoCore-mbed HEAD --- .github/workflows/compile-examples.yml | 38 ++++---------------------- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 949f67fa7..c8486647c 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -29,8 +29,6 @@ jobs: - examples/ArduinoIoTCloud-Advanced - examples/ArduinoIoTCloud-Basic - examples/utility/ArduinoIoTCloud_Travis_CI - ARDUINOCORE_MBED_STAGING_PATH: extras/ArduinoCore-mbed - ARDUINOCORE_API_STAGING_PATH: extras/ArduinoCore-API SKETCHES_REPORTS_PATH: sketches-reports strategy: @@ -50,8 +48,8 @@ jobs: type: gsm - fqbn: arduino:samd:mkrnb1500 type: nb - - fqbn: arduino:mbed:envie_m7 - type: mbed + - fqbn: arduino:mbed_portenta:envie_m7 + type: mbed_portenta - fqbn: esp8266:esp8266:huzzah type: esp8266 - fqbn: esp32:esp32:esp32 @@ -128,18 +126,16 @@ jobs: - examples/utility/Provisioning # Portenta - board: - type: mbed + type: mbed_portenta platforms: | # Install Arduino mbed-Enabled Boards via Boards Manager for the toolchain - - name: arduino:mbed - # Overwrite the Arduino mbed-Enabled Boards release version with version from the tip of the master branch (located in local path because of the need to first install ArduinoCore-API) - - source-path: extras/ArduinoCore-mbed - name: arduino:mbed + - name: arduino:mbed_portenta libraries: | - name: ArduinoECCX08 - name: Arduino_Portenta_OTA sketch-paths: | - examples/utility/Provisioning + # Nicla Vision - board: type: mbed_nicla platforms: | @@ -174,30 +170,6 @@ jobs: - name: Checkout uses: actions/checkout@v2 - # it's necessary to checkout the platform before installing it so that the ArduinoCore-API dependency can be added - - name: Checkout ArduinoCore-mbed - # this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used - if: matrix.board.type == 'mbed' - uses: actions/checkout@v2 - with: - repository: arduino/ArduinoCore-mbed - # the arduino/compile-sketches action will install the platform from this path - path: ${{ env.ARDUINOCORE_MBED_STAGING_PATH }} - - - name: Checkout ArduinoCore-API - # this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used - if: matrix.board.type == 'mbed' - uses: actions/checkout@v2 - with: - repository: arduino/ArduinoCore-API - path: ${{ env.ARDUINOCORE_API_STAGING_PATH }} - - - name: Install ArduinoCore-API - # this step only needed when the Arduino mbed-Enabled Boards platform sourced from the repository is being used - if: matrix.board.type == 'mbed' - run: | - mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino" - - name: Install ESP32 platform dependencies if: matrix.board.type == 'esp32' run: pip3 install pyserial From d404e8d547266d7c26cb8b4c9f65361c3540347e Mon Sep 17 00:00:00 2001 From: pennam Date: Fri, 9 Sep 2022 09:40:03 +0200 Subject: [PATCH 2/2] Fix comment about platform installation --- .github/workflows/compile-examples.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index c8486647c..99e1f0bf8 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -65,7 +65,7 @@ jobs: - board: type: mkr1000 platforms: | - # Install Arduino SAMD Boards via Boards Manager for the toolchain + # Install samd platform via Boards Manager - name: arduino:samd libraries: | - name: ArduinoECCX08 @@ -78,7 +78,7 @@ jobs: - board: type: nina platforms: | - # Install Arduino SAMD Boards via Boards Manager for the toolchain + # Install samd and mbed_nano platform via Boards Manager - name: arduino:samd - name: arduino:mbed_nano libraries: | @@ -93,6 +93,7 @@ jobs: - board: type: wan platforms: | + # Install samd platform via Boards Manager - name: arduino:samd libraries: | - name: ArduinoECCX08 @@ -104,6 +105,7 @@ jobs: - board: type: gsm platforms: | + # Install samd platform via Boards Manager - name: arduino:samd libraries: | - name: ArduinoECCX08 @@ -116,6 +118,7 @@ jobs: - board: type: nb platforms: | + # Install samd platform via Boards Manager - name: arduino:samd libraries: | - name: ArduinoECCX08 @@ -128,7 +131,7 @@ jobs: - board: type: mbed_portenta platforms: | - # Install Arduino mbed-Enabled Boards via Boards Manager for the toolchain + # Install mbed_portenta platform via Boards Manager - name: arduino:mbed_portenta libraries: | - name: ArduinoECCX08 @@ -139,7 +142,7 @@ jobs: - board: type: mbed_nicla platforms: | - # Install Arduino mbed-Enabled Boards via Boards Manager for the toolchain + # Install mbed_nicla platform via Boards Manager - name: arduino:mbed_nicla libraries: | - name: Arduino_Portenta_OTA