-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from nRF24/add-arduino-ci
Add Arduino CI
- Loading branch information
Showing
13 changed files
with
683 additions
and
630 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,101 @@ | ||
name: Arduino CLI build | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- ".github/workflows/build_arduino.yml" | ||
- "examples/**" | ||
|
||
push: | ||
paths: | ||
- ".github/workflows/build_arduino.yml" | ||
- "examples/**" | ||
|
||
jobs: | ||
check_formatting: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Check code formatting | ||
uses: per1234/artistic-style-action@main | ||
with: | ||
options-file-path: ./examples/examples_formatter.conf | ||
name-patterns: | | ||
- '*.ino' | ||
- '*.cpp' | ||
- '*.hpp' | ||
- '*.h' | ||
target-paths: | | ||
- examples | ||
build: | ||
needs: check_formatting | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
fqbn: | ||
- "arduino:avr:yun" | ||
- "arduino:avr:uno" | ||
- "arduino:avr:diecimila" | ||
- "arduino:avr:nano" | ||
- "arduino:avr:mega" | ||
- "arduino:avr:megaADK" | ||
- "arduino:avr:leonardo" | ||
- "arduino:avr:micro" | ||
- "arduino:avr:esplora" | ||
- "arduino:avr:mini" | ||
- "arduino:avr:ethernet" | ||
- "arduino:avr:fio" | ||
- "arduino:avr:bt" | ||
# - "arduino:avr:LilyPad" # board not found | ||
- "arduino:avr:LilyPadUSB" | ||
- "arduino:avr:pro" | ||
- "arduino:avr:atmegang" | ||
- "arduino:avr:robotControl" | ||
# - "arduino:avr:gemma" # does not support SPI | ||
- "arduino:avr:circuitplay32u4cat" | ||
- "arduino:avr:yunmini" | ||
- "arduino:avr:chiwawa" | ||
- "arduino:avr:one" | ||
- "arduino:avr:unowifi" | ||
- "arduino:mbed:nano33ble" | ||
- "arduino:samd:mkr1000" | ||
- "arduino:samd:mkrzero" | ||
- "arduino:samd:mkrwifi1010" | ||
- "arduino:samd:nano_33_iot" | ||
- "arduino:samd:mkrfox1200" | ||
- "arduino:samd:mkrwan1300" | ||
- "arduino:samd:mkrwan1310" | ||
- "arduino:samd:mkrgsm1400" | ||
- "arduino:samd:mkrnb1500" | ||
- "arduino:samd:mkrvidor4000" | ||
- "arduino:samd:adafruit_circuitplayground_m0" | ||
- "arduino:samd:mzero_pro_bl" | ||
- "arduino:samd:mzero_bl" | ||
- "arduino:samd:tian" | ||
- "arduino:megaavr:uno2018" | ||
# - "arduino:megaavr:nano4809" # board not found | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Compile examples | ||
uses: arduino/compile-sketches@main | ||
with: | ||
sketch-paths: | | ||
- examples/helloworld_rx | ||
- examples/helloworld_rx_advanced | ||
- examples/helloworld_tx_advanced | ||
- examples/helloworld_tx | ||
- examples/Network_Priority_RX | ||
- examples/Network_Priority_TX | ||
# - examples/Network_Ping | ||
# - examples/Network_Ping_Sleep | ||
libraries: | | ||
- name: RF24 | ||
- source-path: ./ | ||
fqbn: ${{ matrix.fqbn }} |
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ version.h | |
*.orig | ||
*.bak | ||
PINS_*/ | ||
*.exe |
Oops, something went wrong.