2021-04-12 09:03:19 +02:00
|
|
|
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/**"
|
2021-05-19 06:33:14 +02:00
|
|
|
- "**.c"
|
|
|
|
- "**.cpp"
|
|
|
|
- "**.h"
|
|
|
|
- "*.S"
|
2021-04-12 09:03:19 +02:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- ".github/workflows/compile-examples.yml"
|
|
|
|
- "examples/**"
|
2021-05-19 06:33:14 +02:00
|
|
|
- "**.c"
|
|
|
|
- "**.cpp"
|
|
|
|
- "**.h"
|
|
|
|
- "*.S"
|
2021-04-12 09:03:19 +02:00
|
|
|
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
|
|
|
|
|
2021-04-12 09:03:38 +02:00
|
|
|
env:
|
|
|
|
SKETCHES_REPORTS_PATH: sketches-reports
|
|
|
|
|
2021-04-12 09:03:19 +02:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
board:
|
|
|
|
- fqbn: esp8266:esp8266:huzzah
|
|
|
|
platforms: |
|
|
|
|
- name: esp8266:esp8266
|
|
|
|
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-03-01 22:12:53 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-04-12 09:03:19 +02:00
|
|
|
|
|
|
|
- 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: ./
|
|
|
|
# Additional library dependencies can be listed here.
|
|
|
|
# See: https://github.com/arduino/compile-sketches#libraries
|
|
|
|
sketch-paths: |
|
|
|
|
- examples
|
2021-04-12 09:03:38 +02:00
|
|
|
enable-deltas-report: true
|
|
|
|
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
|
|
|
|
|
|
|
|
- name: Save sketches report as workflow artifact
|
2022-04-08 23:07:53 +02:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-04-12 09:03:38 +02:00
|
|
|
with:
|
|
|
|
if-no-files-found: error
|
|
|
|
path: ${{ env.SKETCHES_REPORTS_PATH }}
|
|
|
|
name: ${{ env.SKETCHES_REPORTS_PATH }}
|