Skip to content

Commit

Permalink
Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mapero committed Nov 6, 2023
1 parent 26abbbd commit d6010a3
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/example_build_hcpbridge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
esphome:
name: hcpbridge
libraries:
- emelianov/modbus-esp8266
platformio_options:
board_build.f_cpu: 240000000L
board_build.flash_mode: qio
monitor_speed: 9600
monitor_filters: esp32_exception_decoder
lib_ldf_mode: deep+
# board_build.f_flash: 40000000L

external_components:
- source:
type: local
path: "../components/"

esp32:
board: adafruit_feather_esp32s3
framework:
type: arduino

hcpbridge:
is_connected:
name: "HCPBridge Connected"
rx_pin: 18 # optional, default=18
tx_pin: 17 # optional, default=17

cover:
- platform: hcpbridge
name: Garage Door

switch:
- platform: hcpbridge
name: Garage Light

wifi:
ssid: "My Network"
password: "My Password"

api:
20 changes: 20 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Build Component

on:
push:
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Compile for main
if: github.ref == 'refs/heads/main'
uses: esphome/build-action@v1
with:
yaml_file: .github/example_build_hcpbridge.yaml

0 comments on commit d6010a3

Please sign in to comment.