diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 1652f6774..28e48bb07 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -25,9 +25,13 @@ jobs: - name: Arduino_DebugUtils - name: ArduinoMqttClient # sketch paths to compile (recursive) for all boards - UNIVERSAL_SKETCH_PATHS: '"examples/ArduinoIoTCloud-Advanced" "examples/ArduinoIoTCloud-Basic" "examples/utility/ArduinoIoTCloud_Travis_CI"' + UNIVERSAL_SKETCH_PATHS: | + - 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: fail-fast: false @@ -57,7 +61,8 @@ jobs: - name: ArduinoECCX08 - name: RTCZero - name: WiFi101 - sketch-paths: '"examples/utility/Provisioning"' + sketch-paths: | + - examples/utility/Provisioning # MKR WiFi 1010, Nano 33 IoT - board: type: "nina" @@ -70,7 +75,9 @@ jobs: - name: WiFiNINA - name: Arduino_JSON - name: ArduinoBearSSL - sketch-paths: '"examples/utility/Provisioning" "examples/utility/SelfProvisioning"' + sketch-paths: | + - examples/utility/Provisioning + - examples/utility/SelfProvisioning # LoRaWAN boards - board: type: "wan" @@ -90,7 +97,8 @@ jobs: - name: ArduinoECCX08 - name: RTCZero - name: MKRGSM - sketch-paths: '"examples/utility/Provisioning"' + sketch-paths: | + - examples/utility/Provisioning # NB boards - board: type: "nb" @@ -100,7 +108,8 @@ jobs: - name: ArduinoECCX08 - name: RTCZero - name: MKRNB - sketch-paths: '"examples/utility/Provisioning"' + sketch-paths: | + - examples/utility/Provisioning # Portenta - board: type: "mbed" @@ -112,7 +121,8 @@ jobs: name: arduino:mbed libraries: | - name: ArduinoECCX08 - sketch-paths: '"examples/utility/Provisioning"' + sketch-paths: | + - examples/utility/Provisioning # ESP8266 boards - board: type: "esp8266" @@ -159,22 +169,25 @@ jobs: mv "${{ env.ARDUINOCORE_API_STAGING_PATH }}/api" "${{ env.ARDUINOCORE_MBED_STAGING_PATH }}/cores/arduino" - name: Compile examples - uses: arduino/actions/libraries/compile-examples@master + uses: arduino/compile-sketches@main with: platforms: ${{ matrix.platforms }} fqbn: ${{ matrix.board.fqbn }} libraries: | ${{ env.UNIVERSAL_LIBRARIES }} ${{ matrix.libraries }} - sketch-paths: "${{ env.UNIVERSAL_SKETCH_PATHS }} ${{ matrix.sketch-paths }}" - size-report-sketch: 'ArduinoIoTCloud_Travis_CI' - enable-size-deltas-report: 'true' + sketch-paths: | + ${{ env.UNIVERSAL_SKETCH_PATHS }} + ${{ matrix.sketch-paths }} + enable-deltas-report: 'true' + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} - name: Write data to size trends report spreadsheet # Update report on every push to the master branch if: github.event_name == 'push' && github.ref == 'refs/heads/master' - uses: arduino/actions/libraries/report-size-trends@master + uses: arduino/report-size-trends@main with: + sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} google-key-file: ${{ secrets.GOOGLE_KEY_FILE }} spreadsheet-id: 1I6NZkpZpf8KugBkE92adB1Z3_b7ZepOpCdYTOigJpN4 @@ -182,5 +195,5 @@ jobs: if: github.event_name == 'pull_request' uses: actions/upload-artifact@v1 with: - name: 'size-deltas-reports' - path: 'size-deltas-reports' + name: ${{ env.SKETCHES_REPORTS_PATH }} + path: ${{ env.SKETCHES_REPORTS_PATH }} diff --git a/.github/workflows/report-size-deltas.yml b/.github/workflows/report-size-deltas.yml index d56f8db19..12c162fa4 100644 --- a/.github/workflows/report-size-deltas.yml +++ b/.github/workflows/report-size-deltas.yml @@ -8,4 +8,7 @@ jobs: steps: - name: Comment size deltas reports to PRs - uses: arduino/actions/libraries/report-size-deltas@master + uses: arduino/report-size-deltas@main + with: + # The name of the workflow artifact created by the "Compile Examples" workflow + sketches-reports-source: sketches-reports