From d6010a3e3a2763dddd9a10748ccf6fa0bd1cdd15 Mon Sep 17 00:00:00 2001 From: Jochen Scheib Date: Mon, 6 Nov 2023 17:52:41 +0100 Subject: [PATCH] Add github workflow --- .github/example_build_hcpbridge.yaml | 41 ++++++++++++++++++++++++++++ .github/workflows/build.yaml | 20 ++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 .github/example_build_hcpbridge.yaml create mode 100644 .github/workflows/build.yaml diff --git a/.github/example_build_hcpbridge.yaml b/.github/example_build_hcpbridge.yaml new file mode 100644 index 0000000..f6d0f69 --- /dev/null +++ b/.github/example_build_hcpbridge.yaml @@ -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: \ No newline at end of file diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..f31be4f --- /dev/null +++ b/.github/workflows/build.yaml @@ -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