reduced test frequency #10
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
# based on https://github.com/arduino-libraries/ArduinoBLE/blob/master/.github/workflows/compile-examples.yml | |
name: Build Lib Examples | |
on: | |
# Trigger workflow on every push and pull request | |
push: | |
pull_request: | |
# Also run periodically to catch breakage caused by changes to external resources (libraries, platforms). | |
schedule: | |
# Minute, Hour, Day of Month, Month, Day of Week (UTC timezone) | |
#- cron: '20 21 */7 * *' | |
- cron: '30 1 2 * *' | |
jobs: | |
# Build for AVR | |
build-for-avr: | |
runs-on: ubuntu-latest | |
env: | |
SKETCHES_REPORTS_PATH: sketches-reports | |
strategy: | |
fail-fast: false | |
matrix: | |
board: | |
- fqbn: arduino:avr:mega # Arduino Mega2560 | |
artifact-name-suffix: arduino_avr_mega | |
- fqbn: arduino:avr:uno # Arduino Uno | |
artifact-name-suffix: arduino_avr_uno | |
steps: | |
- uses: actions/[email protected] # check-out this repo | |
- uses: arduino/[email protected] # build Arduino examples | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} # required for private repos | |
fqbn: ${{ matrix.board.fqbn }} | |
libraries: | | |
- source-path: ./ | |
sketch-paths: | | |
- examples | |
cli-compile-flags: | | |
- --warnings="all" | |
- uses: actions/[email protected] # upload test reports | |
with: | |
if-no-files-found: error | |
path: ${{ env.SKETCHES_REPORTS_PATH }} | |
name: sketches-report-${{ matrix.board.artifact-name-suffix }} | |
# Build for SAMD | |
build-for-samd: | |
runs-on: ubuntu-latest | |
env: | |
SKETCHES_REPORTS_PATH: sketches-reports | |
strategy: | |
fail-fast: false | |
matrix: | |
board: | |
- fqbn: arduino:sam:arduino_due_x # Arduino Due (Native USB Port) | |
artifact-name-suffix: arduino_sam_arduino_due_x | |
- fqbn: arduino:sam:arduino_due_x_dbg # Arduino Due (Programming Port) | |
artifact-name-suffix: arduino_sam_arduino_due_x_dbg | |
steps: | |
- uses: actions/[email protected] # check-out this repo | |
- uses: arduino/[email protected] # build Arduino examples | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} # required for private repos | |
fqbn: ${{ matrix.board.fqbn }} | |
libraries: | | |
- source-path: ./ | |
sketch-paths: | | |
- examples | |
cli-compile-flags: | | |
- --warnings="all" | |
- uses: actions/[email protected] # upload test reports | |
with: | |
if-no-files-found: error | |
path: ${{ env.SKETCHES_REPORTS_PATH }} | |
name: sketches-report-${{ matrix.board.artifact-name-suffix }} |