Skip to content

Commit

Permalink
Merge pull request #130 from fhrbata/feat/skip_size_json_for_preview_…
Browse files Browse the repository at this point in the history
…targets
  • Loading branch information
hfudev authored Mar 13, 2024
2 parents 120b8fd + 4c44c78 commit 33b94a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions idf_build_apps/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
IDF_VERSION_MAJOR,
IDF_VERSION_MINOR,
IDF_VERSION_PATCH,
PREVIEW_TARGETS,
PROJECT_DESCRIPTION_JSON,
BuildStage,
BuildStatus,
Expand Down Expand Up @@ -666,6 +667,11 @@ def _write_size_json(self) -> None:
self._logger.debug('Generated size info to %s', self.size_json_path)

def write_size_json(self) -> None:
if self.target in PREVIEW_TARGETS:
# targets in preview may not yet have support in esp-idf-size
self._logger.info('Skipping generation of size json for target %s as it is in preview.', self.target)
return

try:
self._write_size_json()
except Exception as e:
Expand Down

0 comments on commit 33b94a4

Please sign in to comment.