Skip to content

Commit

Permalink
[node-wifi-mqtt-homie] Add PlatformIO and CI/GHA configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed May 26, 2023
1 parent 8e01c75 commit a5becc5
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 15 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/platformio-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
node-wifi-mqtt: ${{ steps.changes.outputs.node-wifi-mqtt }}
node-esp8266-generic: ${{ steps.changes.outputs.node-esp8266-generic }}
node-esp32-generic: ${{ steps.changes.outputs.node-esp32-generic }}
node-wifi-mqtt-homie: ${{ steps.changes.outputs.node-wifi-mqtt-homie }}
node-yun-http: ${{ steps.changes.outputs.node-yun-http }}
steps:
- uses: actions/checkout@v3
Expand All @@ -64,6 +65,10 @@ jobs:
- 'node-esp8266-generic/**'
node-esp32-generic:
- 'node-esp32-generic/**'
node-wifi-mqtt-homie:
- 'node-wifi-mqtt-homie/**'
- 'node-wifi-mqtt-homie-battery/**'
- 'node-wifi-mqtt-homie-calibration/**'
node-yun-http:
- 'node-yun-http/**'
Expand Down Expand Up @@ -131,3 +136,10 @@ jobs:
if: ${{ needs.changes.outputs.node-yun-http == 'true' }}
run: |
pio run --project-dir node-yun-http
- name: Build node-wifi-mqtt-homie-*
if: ${{ needs.changes.outputs.node-wifi-mqtt-homie == 'true' }}
run: |
pio run --project-dir node-wifi-mqtt-homie
pio run --project-dir node-wifi-mqtt-homie-battery
pio run --project-dir node-wifi-mqtt-homie-calibration
2 changes: 1 addition & 1 deletion node-wifi-mqtt-homie-battery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ upload: setup-virtualenv
$(pio) run --target upload --upload-port=${MCU_PORT}

setup-virtualenv:
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath)
@test -e $(python) || python3 -m venv $(venvpath)
$(pip) install platformio
8 changes: 4 additions & 4 deletions node-wifi-mqtt-homie-battery/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
src_dir = .

[env:esp07]
platform = espressif8266
platform = espressif8266@^2
board = esp07
framework = arduino

monitor_speed = 115200

lib_deps =
marvinroger/Homie@^2
paulstoffregen/OneWire@^2.3.5
bogde/HX711@0.7.4
marvinroger/Homie@^2
milesburton/DallasTemperature@^3.9.1
robtillaart/RunningMedian@0.3.7
paulstoffregen/OneWire@^2.3.5
robtillaart/RunningMedian@^0.3.7
2 changes: 1 addition & 1 deletion node-wifi-mqtt-homie-calibration/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ upload: setup-virtualenv
$(pio) run --target upload --upload-port=${MCU_PORT}

setup-virtualenv:
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath)
@test -e $(python) || python3 -m venv $(venvpath)
$(pip) install platformio
8 changes: 4 additions & 4 deletions node-wifi-mqtt-homie-calibration/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
src_dir = .

[env:esp07]
platform = espressif8266
platform = espressif8266@^2
board = esp07
framework = arduino

monitor_speed = 115200

lib_deps =
marvinroger/Homie@^2
paulstoffregen/OneWire@^2.3.5
bogde/HX711@0.7.4
marvinroger/Homie@^2
milesburton/DallasTemperature@^3.9.1
robtillaart/RunningMedian@0.3.7
paulstoffregen/OneWire@^2.3.5
robtillaart/RunningMedian@^0.3.7
2 changes: 1 addition & 1 deletion node-wifi-mqtt-homie/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ upload: setup-virtualenv
$(pio) run --target upload --upload-port=${MCU_PORT}

setup-virtualenv:
@test -e $(python) || `command -v virtualenv` --python=python3 $(venvpath)
@test -e $(python) || python3 -m venv $(venvpath)
$(pip) install platformio
8 changes: 4 additions & 4 deletions node-wifi-mqtt-homie/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
src_dir = .

[env:esp07]
platform = espressif8266
platform = espressif8266@^2
board = esp07
framework = arduino

monitor_speed = 115200

lib_deps =
marvinroger/Homie@^2
paulstoffregen/OneWire@^2.3.5
bogde/HX711@0.7.4
marvinroger/Homie@^2
milesburton/DallasTemperature@^3.9.1
robtillaart/RunningMedian@^0.3.3
paulstoffregen/OneWire@^2.3.5
robtillaart/RunningMedian@^0.3.7

0 comments on commit a5becc5

Please sign in to comment.