Skip to content

Commit

Permalink
allow to choose build branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyspb committed Feb 8, 2024
1 parent 3f0c68a commit 39144bb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pull_request_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
cd $GITHUB_WORKSPACE &&
python3 -m venv venv &&
source venv/bin/activate &&
pip install esphome &&
esphome compile comfortzone.yaml
esphome -s git_branch=$GITHUB_SHA compile .github/workflows/test-build.yaml
28 changes: 28 additions & 0 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
substitutions:
tx_pin: "35"
rx_pin: "36"
re_de_pin: "37"
comfortzone_protocol_version: "180"
git_branch: "main"

packages:
comfortzone_package: github://vinnyspb/esphome-comfortzone/comfortzone-package.yaml@${git_branch}

esphome:
name: comfortzone

esp32:
board: lolin_s2_mini
framework:
type: esp-idf

logger:
level: DEBUG

ota:
password: "some_other_password"

wifi:
ssid: "some_wifi"
password: "some_password"
power_save_mode: none
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ substitutions:
# https://github.com/qix67/comfortzone_heatpump/blob/master/comfortzone_config.h#L4-L6
comfortzone_protocol_version: "180"

# git branch to use for the source code, can be changed during development
git_branch: "main"

packages:
comfortzone_package:
url: github://vinnyspb/esphome-comfortzone/comfortzone-package.yaml@main
url: github://vinnyspb/esphome-comfortzone/comfortzone-package.yaml@${git_branch}

esphome:
# Choose a hostname for the ESP32 board on your network
Expand Down
2 changes: 1 addition & 1 deletion comfortzone-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ esphome:
- "-DHP_PROTOCOL=${comfortzone_protocol_version}"

external_components:
- source: github://vinnyspb/esphome-comfortzone@main
- source: github://vinnyspb/esphome-comfortzone@${git_branch}
components: [ comfortzone ]

# Tracks the current offset of the indoor temperature sensor
Expand Down

0 comments on commit 39144bb

Please sign in to comment.