Skip to content

Commit

Permalink
Merge pull request #76 from lenvm/feature/add-github-action-compile-s…
Browse files Browse the repository at this point in the history
…ketches

add GitHub Action that compiles Arduino sketch for ESP32
  • Loading branch information
dalathegreat authored Nov 5, 2023
2 parents 8d4500a + 4e8246e commit 40526f4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/compile-arduino-sketch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Compile Arduino Sketch
on:
- push
- pull_request

jobs:
build-for-esp32:
runs-on: ubuntu-latest

strategy:
matrix:
fqbn:
- esp32:esp32:esp32
# further ESP32 chips
#- esp32:esp32:esp32c3
#- esp32:esp32:esp32c2
#- esp32:esp32:esp32c6
#- esp32:esp32:esp32h2
#- esp32:esp32:esp32s3

steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fqbn: ${{ matrix.fqbn }}
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
sketch-paths: |
- Software
cli-compile-flags: |
- --warnings="none"

0 comments on commit 40526f4

Please sign in to comment.