Skip to content

Commit

Permalink
isolate sleep to avr only
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jan 14, 2021
1 parent 6eb8629 commit e655b37
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 3 deletions.
60 changes: 58 additions & 2 deletions .github/workflows/build_arduino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,56 @@ jobs:
- '*.h'
target-paths: |
- examples
build:
build-avr-sleep:
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: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/Network_Ping_Sleep
libraries: |
- name: RF24
- source-path: ./
fqbn: ${{ matrix.fqbn }}

build-all-non-sleep:
needs: check_formatting
runs-on: ubuntu-latest

Expand Down Expand Up @@ -83,10 +132,17 @@ jobs:
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_Ping
- examples/Network_Priority_RX
- examples/Network_Priority_TX
libraries: |
- name: RF24
- source-path: ./
Expand Down
2 changes: 1 addition & 1 deletion examples/Network_Ping/Network_Ping.ino
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void loop() {
handle_N(header);
break;
default:
Serial.print(F("*** WARNING *** Unknown message type ");
Serial.print(F("*** WARNING *** Unknown message type "));
Serial.println(header.type);
network.read(header, 0, 0);
break;
Expand Down

0 comments on commit e655b37

Please sign in to comment.