Skip to content

Commit

Permalink
github action -- compile for arduino:esp32:nano_nora
Browse files Browse the repository at this point in the history
  • Loading branch information
mathertel committed Aug 2, 2024
1 parent 64dd665 commit afa4f8d
Showing 1 changed file with 52 additions and 11 deletions.
63 changes: 52 additions & 11 deletions .github/workflows/arduino-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ jobs:
lint:
name: check library format
runs-on: ubuntu-latest
continue-on-error: true


steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Arduino - lint
- name: Arduino-lint
Expand All @@ -37,10 +36,10 @@ jobs:
compile-uno:
name: compile uno examples
runs-on: ubuntu-latest
continue-on-error: true

# continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Compile Examples for UNO
- name: Compile examples on uno
Expand All @@ -58,10 +57,9 @@ jobs:
compile-esp8266:
name: compile esp8266 examples
runs-on: ubuntu-latest
continue-on-error: true


steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: compile sketches
uses: arduino/compile-sketches@v1
with:
Expand All @@ -82,10 +80,33 @@ jobs:
compile-esp32:
name: build examples on ESP32
runs-on: ubuntu-latest
continue-on-error: true

steps:
- uses: actions/checkout@v4
- name: compile sketches
uses: arduino/compile-sketches@v1
with:
verbose: true
platforms: |
# Install ESP32 platform via Boards Manager
- name: "esp32:esp32"
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
# version: 2.0.4 doesn't work with CLI caused by issue https://github.com/espressif/arduino-esp32/pull/7060
version: 2.0.8
fqbn: esp32:esp32:esp32
sketch-paths: |
- 'examples/SimpleOneButton'
- 'examples/TwoButtons'
- 'examples/BlinkMachine'
- 'examples/InterruptOneButton'
- 'examples/SpecialInput'
compile-arduino-nano-esp32:
name: build examples on Arduino Nano ESP32
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: compile sketches
uses: arduino/compile-sketches@v1
with:
Expand All @@ -103,3 +124,23 @@ jobs:
- 'examples/BlinkMachine'
- 'examples/InterruptOneButton'
- 'examples/SpecialInput'
compile-arduino-nano-eps32:
name: compile examples for Arduinop Nano ESP32
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

# Compile Examples for UNO
- name: Compile examples on uno
uses: arduino/compile-sketches@v1
with:
verbose: true
fqbn: arduino:esp32:nano_nora
sketch-paths: |
- 'examples/SimpleOneButton'
- 'examples/TwoButtons'
- 'examples/BlinkMachine'
- 'examples/InterruptOneButton'
- 'examples/SpecialInput'

0 comments on commit afa4f8d

Please sign in to comment.