Compile Examples #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile Examples | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/compile-examples.yml" | |
- "library.properties" | |
- "src/**" | |
- "examples/**" | |
push: | |
paths: | |
- ".github/workflows/compile-examples.yml" | |
- "library.properties" | |
- "src/**" | |
- "examples/**" | |
# Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms) | |
schedule: | |
# run every Tuesday at 3 AM UTC | |
- cron: "0 3 * * 2" | |
# workflow_dispatch event allows the workflow to be triggered manually | |
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch | |
workflow_dispatch: | |
# repository_dispatch event allows the workflow to be triggered via the GitHub API | |
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch | |
repository_dispatch: | |
env: | |
SKETCHES_REPORTS_PATH: sketches-reports | |
SKETCHES_REPORTS_ARTIFACT_NAME: sketches-reports | |
jobs: | |
compile-examples: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Compile example sketches | |
uses: arduino/compile-sketches@v1 | |
with: | |
fqbn: arduino:mbed_portenta:envie_m7 | |
platforms: | | |
- name: arduino:mbed_portenta | |
libraries: | | |
- source-path: ./ | |
- name: ArduinoRS485 | |
- name: Arduino_AdvancedAnalog | |
sketch-paths: | | |
- examples | |
enable-deltas-report: true | |
enable-warnings-report: true | |
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Save memory usage change report as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
if-no-files-found: error | |
path: ${{ env.SKETCHES_REPORTS_PATH }} | |
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }} |