Skip to content

Commit

Permalink
Create compile_examples.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hasenradball authored Nov 22, 2024
1 parent 086ea84 commit 3e0fdbb
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/compile_examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Compile examples foolder

on: [push, pull_request]

jobs:

build-esp32:
runs-on: ubuntu-latest
#if: contains(github.event.head_commit.message, 'esp32')

strategy:
fail-fast: false

matrix:
board:
- fqbn: esp32:esp32:esp32-c3-devkitm-1
core:
- version: 3.0.7

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Compile ESP32 examples
uses: arduino/compile-sketches@v1
with:
platforms: |
- name: esp32:esp32
source-url: https://espressif.github.io/arduino-esp32/package_esp32_index.json
version: ${{ matrix.core.version }}
fqbn: ${{ matrix.board.fqbn }}
libraries: |
- source-path: ./
sketch-paths:
./examples/helloWorld/helloWorld.ino
./examples/wifiTest/wifiTest.ino
./examples/readAM2302_Sensor/readAM2302_sensor.ino
./examples/timerInterrupt/timerInterrupt.ino

0 comments on commit 3e0fdbb

Please sign in to comment.