-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new file: .github/Compile-Examples.yml
new file: .github/Spell-Check.yml renamed: .github/workflows/arduino.yml -> .github/workflows/Arduino-Lint-Action.yml modified: README.md modified: examples/Button/Button.ino modified: examples/ResetSet/ResetSet.ino modified: examples/Toggle/Toggle.ino modified: library.properties modified: src/ADebouncer.h
- Loading branch information
1 parent
03cfd82
commit 0616e34
Showing
9 changed files
with
226 additions
and
8 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,100 @@ | ||
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:avr:nano | ||
platforms: | | ||
- name: arduino:avr | ||
artifact-name-suffix: arduino-avr-nano | ||
- fqbn: arduino:avr:mega | ||
platforms: | | ||
- name: arduino:avr | ||
artifact-name-suffix: arduino-avr-mega | ||
- fqbn: arduino:avr:leonardo | ||
platforms: | | ||
- name: arduino:avr | ||
artifact-name-suffix: arduino-avr-leonardo | ||
- fqbn: arduino:megaavr:nona4809 | ||
platforms: | | ||
- name: arduino:megaavr | ||
artifact-name-suffix: arduino-megaavr-nona4809 | ||
- fqbn: arduino:sam:arduino_due_x_dbg | ||
platforms: | | ||
- name: arduino:sam | ||
artifact-name-suffix: arduino-sam-arduino_due_x_dbg | ||
- fqbn: arduino:samd:mkrzero | ||
platforms: | | ||
- name: arduino:samd | ||
artifact-name-suffix: arduino-samd-mkrzero | ||
- fqbn: arduino:mbed_portenta:envie_m7:target_core=cm4 | ||
platforms: | | ||
- name: arduino:mbed_portenta | ||
artifact-name-suffix: arduino-mbed_portenta-envie_m7-target_core-cm4 | ||
- fqbn: arduino:mbed_portenta:envie_m7 | ||
platforms: | | ||
- name: arduino:mbed_portenta | ||
artifact-name-suffix: arduino-mbed_portenta-envie_m7 | ||
- fqbn: arduino:mbed_nano:nano33ble | ||
platforms: | | ||
- name: arduino:mbed_nano | ||
artifact-name-suffix: arduino-mbed_nano-nano33ble | ||
- fqbn: arduino:mbed_nano:nanorp2040connect | ||
platforms: | | ||
- name: arduino:mbed_nano | ||
artifact-name-suffix: arduino-mbed_nano-nanorp2040connect | ||
|
||
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: ./ | ||
# Additional library dependencies can be listed here. | ||
# See: https://github.com/arduino/compile-sketches#libraries | ||
sketch-paths: | | ||
- examples | ||
enable-deltas-report: true | ||
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }} | ||
|
||
- 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 }} |
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,22 @@ | ||
name: Spell Check | ||
|
||
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates. | ||
- cron: "0 8 * * TUE" | ||
workflow_dispatch: | ||
repository_dispatch: | ||
|
||
jobs: | ||
spellcheck: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Spell check | ||
uses: codespell-project/actions-codespell@master |
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
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
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
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
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
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
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