Skip to content

Commit

Permalink
Support github workflow to build sketch on supported boards (rbroker#33)
Browse files Browse the repository at this point in the history
* Create github action to build project

* Only trigger workflows for changes on 'main' branch

* Use arduino compile action from main branch due to deprecation warning

* Add badge to readme

* Don't support C3... yet
  • Loading branch information
rbroker committed Mar 16, 2024
1 parent cef6ce2 commit 6aec656
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Compile Sketch
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
fqbn:
- esp32:esp32:esp32
- esp32:esp32:esp32s3
#- esp32:esp32:esp32c3
- esp32:esp32:lolin_s2_mini

steps:
- uses: actions/checkout@v4
- uses: arduino/compile-sketches@main
with:
fqbn: ${{ matrix.fqbn }}
platforms: |
- name: esp32:esp32
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
sketch-paths: |
- ecodan-ha-local
libraries: |
- name: ArduinoJson
version: 7.0.3
- name: Seeed_Arduino_mbedtls
version: 3.0.1
- name: MQTT
version: 2.5.2
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Build Status](https://github.com/rbroker/ecodan-ha-local/actions/workflows/build.yml/badge.svg)

# ecodan-ha-local
ESP32 compatible program for local monitoring of Mitsubishi Ecodan Air to Water heat pumps with automatic discovery in HomeAssistant.

Expand Down

0 comments on commit 6aec656

Please sign in to comment.