Skip to content

[CI] Update compile-examples and report-size-deltas for released libraries. #200

[CI] Update compile-examples and report-size-deltas for released libraries.

[CI] Update compile-examples and report-size-deltas for released libraries. #200

name: Compile Examples
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
pull_request:
paths:
- ".github/workflows/compile-examples.yml"
- "examples/**"
- "src/**"
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:
jobs:
build:
name: ${{ matrix.board.fqbn }}
runs-on: ubuntu-latest
env:
SKETCHES_REPORTS_PATH: sketches-reports
strategy:
fail-fast: false
matrix:
board:
- fqbn: arduino:mbed_opta:opta
artifact-name-suffix: arduino-mbed_opta-opta
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Compile examples
uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.board.fqbn }}
platforms: ${{ matrix.board.platforms }}
libraries: |
# Install the library from the local path.
- source-path: ./
- name: Arduino_Opta_Blueprint
- name: Arduino_SerialUpdater
- name: Arduino_DebugUtils
- name: ArduinoRS485
- name: ArduinoModbus
sketch-paths: |
- examples
enable-deltas-report: true
github-token: ${{ secrets.GITHUB_TOKEN }}

Check failure on line 58 in .github/workflows/compile-examples.yml

View workflow run for this annotation

GitHub Actions / Compile Examples

Invalid workflow file

The workflow is not valid. .github/workflows/compile-examples.yml (Line: 58, Col: 11): 'github-token' is already defined
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
cli-compile-flags: |
- --build-property
- compiler.cpp.extra_flags=-DUSE_MODBUS_SENSOR_MD02=1
- name: Save sketches report as workflow artifact
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
path: ${{ env.SKETCHES_REPORTS_PATH }}
name: sketches-report-${{ matrix.board.artifact-name-suffix }}