From afa4f8d3a838a4a88f5a5ed287686aaad89af9e9 Mon Sep 17 00:00:00 2001 From: Matthias Hertel Date: Fri, 2 Aug 2024 17:24:36 +0200 Subject: [PATCH] github action -- compile for arduino:esp32:nano_nora --- .github/workflows/arduino-checks.yml | 63 +++++++++++++++++++++++----- 1 file changed, 52 insertions(+), 11 deletions(-) diff --git a/.github/workflows/arduino-checks.yml b/.github/workflows/arduino-checks.yml index 802d647..0183c4d 100644 --- a/.github/workflows/arduino-checks.yml +++ b/.github/workflows/arduino-checks.yml @@ -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 @@ -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 @@ -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: @@ -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: @@ -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'