Skip to content

Use sketch compilation CI actions from their new dedicated repositories #207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 26 additions & 13 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -159,28 +169,31 @@ 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

- name: Save memory usage change report as artifact
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 }}
5 changes: 4 additions & 1 deletion .github/workflows/report-size-deltas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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