forked from arduino-libraries/WiFiNINA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "smoke test" examples compilation CI workflow
On every push or pull request that affects library source or example files, compile all example sketches for the specified boards.
- Loading branch information
Showing
3 changed files
with
57 additions
and
51 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
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 | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
board: | ||
- fqbn: arduino:samd:mkrwifi1010 | ||
- fqbn: arduino:samd:mkrvidor4000 | ||
- fqbn: arduino:megaavr:uno2018:mode=on | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Compile examples | ||
uses: arduino/compile-sketches@main | ||
with: | ||
fqbn: ${{ matrix.board.fqbn }} | ||
libraries: | | ||
# Install the library from the local path. | ||
- source-path: ./ | ||
# Install library dependencies. | ||
- name: VidorPeripherals | ||
sketch-paths: | | ||
- ./examples/ |
This file was deleted.
Oops, something went wrong.
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