Skip to content

Commit 62d938d

Browse files
authored
Add build info display for github builds
Added checks for release build environment and updated build info display.
1 parent 5deaf92 commit 62d938d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pio-scripts/output_bins.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,12 @@ def bin_rename_copy(source, target, env):
137137
if os.path.isfile(source_map):
138138
print(f"Found linker mapfile {source_map}")
139139
shutil.copy(source_map, map_file)
140-
141-
# wledmm_print_all_defines(env)
142-
# wledmm_print_build_info(env)
140+
# Check if this is a release build (CI sets WLED_RELEASE=True)
141+
is_release_build = os.environ.get('WLED_RELEASE', '').lower() in ('true', '1', 'yes')
142+
# show build flags summary for github CI builds
143+
if is_release_build:
144+
# wledmm_print_all_defines(env)
145+
wledmm_print_build_info(env)
143146

144147
def bin_gzip(source, target, env):
145148
_create_dirs()

0 commit comments

Comments
 (0)