Compile Examples #357
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" | |
- "examples/**" | |
- "src/**" | |
push: | |
paths: | |
- ".github/workflows/compile-examples.yml" | |
- "examples/**" | |
- "src/**" | |
# Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms) | |
schedule: | |
# run every Saturday at 3 AM UTC | |
- cron: "0 3 * * 6" | |
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch | |
workflow_dispatch: | |
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#repository_dispatch | |
repository_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
SKETCHES_REPORTS_PATH: sketches-reports | |
strategy: | |
fail-fast: false | |
matrix: | |
board: | |
- fqbn: arduino:samd:mkrwifi1010 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Compile examples | |
uses: arduino/compile-sketches@main | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
fqbn: ${{ matrix.board.fqbn }} | |
libraries: | | |
# Install the library from the local path. | |
- source-path: ./ | |
# Install library dependencies. | |
- name: Arduino_APDS9960 | |
- name: Arduino_BQ24195 | |
- name: Arduino_HTS221 | |
- name: Arduino_LPS22HB | |
- name: Arduino_LSM6DS3 | |
- name: Adafruit BusIO | |
- name: Adafruit DotStar | |
- name: Adafruit GFX Library | |
- name: Adafruit ST7735 and ST7789 Library | |
- name: Arduino_MCHPTouch | |
- name: BSEC Software Library | |
- name: Arduino_LSM6DSOX | |
- name: TFT_eSPI | |
sketch-paths: | | |
# Ignoring Display/AnimatedGif compiling the rest of them | |
- './examples/Actuators/' | |
- './examples/All_Features/' | |
- './examples/Grove_Inputs/' | |
- './examples/LEDs-Examples/' | |
- './examples/SD_card/' | |
- './examples/Sensors' | |
- './examples/TouchPads' | |
- './examples/Display/Compose_images/' | |
- './examples/Display/Graphics/' | |
enable-deltas-report: true | |
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} | |
- name: Save memory usage change report as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.SKETCHES_REPORTS_PATH }} | |
path: ${{ env.SKETCHES_REPORTS_PATH }} |