Update workflow configurations and build scripts

- Modified GitHub workflow files for dev, stable, and test releases
- Updated platformio.ini and pio_local.ini_example configurations
- Enhanced build_interface.py script functionality
This commit is contained in:
proddy
2025-10-23 18:37:14 +02:00
parent ba334930fe
commit 0b84b79e1d
6 changed files with 46 additions and 34 deletions

View File

@@ -98,9 +98,9 @@ build_flags =
build_unflags =
${common.unbuild_flags}
extra_scripts =
pre:scripts/build_interface.py ; builds the WebUI (unless NO_BUILD_WEBUI is set)
; pre:scripts/build_interface.py ; builds the WebUI
scripts/rename_fw.py ; renames the firmware .bin file
scripts/upload.py ; optionally upload the firmware via OTA (if upload_protocol = custom)
; scripts/upload.py ; optionally upload the firmware via OTA (if upload_protocol = custom)
monitor_speed = 115200
monitor_filters = direct
build_type = release
@@ -111,11 +111,16 @@ lib_deps =
ESP32Async/ESPAsyncWebServer @ 3.8.1
https://github.com/emsesp/EMS-ESP-Modules.git @ 1.0.8
; builds the web interface only, not the firmware
[env:build_webUI]
platform = native
targets = build
extra_scripts = post:scripts/build_interface.py
;
; Builds for different board types
; We use Tasmota for boards without PSRAM as this framework has mbedtls removed to save memory.
;
; Note, if the system environment variable (windows or linux) "NO_BUILD_WEBUI" is set, the WebUI will not be built.
; If you're building for a single target environment, we recommend creating a pio_local.ini (see example file)
;
@@ -273,6 +278,7 @@ test_testing_command =
# pio run -e build_modbus -t build
[env:build_modbus]
extends = env:native
targets = build
extra_scripts =
pre:scripts/build_modbus_entity_parameters_pre.py
post:scripts/build_run_test.py
@@ -286,6 +292,7 @@ custom_post_script = scripts/build_modbus_entity_parameters_post.py
; to be run after build_modbus with: pio run -e build_standalone -t clean -t build
[env:build_standalone]
extends = env:native
targets = build
extra_scripts =
post:scripts/build_run_test.py
build_flags = -DEMSESP_STANDALONE