mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
ci: don't run idf-size for linux target
This commit is contained in:
parent
d18b6ade6e
commit
9153f9c927
@ -60,18 +60,13 @@ def get_pytest_apps(
|
|||||||
LOGGER.info(f'Found {len(app_dirs)} apps')
|
LOGGER.info(f'Found {len(app_dirs)} apps')
|
||||||
app_dirs.sort()
|
app_dirs.sort()
|
||||||
|
|
||||||
default_size_json_path = 'size.json'
|
|
||||||
build_dir = 'build_@t_@w'
|
|
||||||
if target == 'linux': # no esp_idf_size for linux target
|
|
||||||
default_size_json_path = None # type: ignore
|
|
||||||
|
|
||||||
apps = find_apps(
|
apps = find_apps(
|
||||||
app_dirs,
|
app_dirs,
|
||||||
target=target,
|
target=target,
|
||||||
build_dir=build_dir,
|
build_dir='build_@t_@w',
|
||||||
config_rules_str=config_rules_str,
|
config_rules_str=config_rules_str,
|
||||||
build_log_path='build_log.txt',
|
build_log_path='build_log.txt',
|
||||||
size_json_path=default_size_json_path,
|
size_json_path='size.json',
|
||||||
check_warnings=True,
|
check_warnings=True,
|
||||||
manifest_files=[str(p) for p in Path(IDF_PATH).glob('**/.build-test-rules.yml')],
|
manifest_files=[str(p) for p in Path(IDF_PATH).glob('**/.build-test-rules.yml')],
|
||||||
default_build_targets=SUPPORTED_TARGETS + extra_default_build_targets,
|
default_build_targets=SUPPORTED_TARGETS + extra_default_build_targets,
|
||||||
@ -83,6 +78,9 @@ def get_pytest_apps(
|
|||||||
if not preserve_all and not is_test_related:
|
if not preserve_all and not is_test_related:
|
||||||
app.preserve = False
|
app.preserve = False
|
||||||
|
|
||||||
|
if app.target == 'linux':
|
||||||
|
app._size_json_path = None # no esp_idf_size for linux target
|
||||||
|
|
||||||
return apps # type: ignore
|
return apps # type: ignore
|
||||||
|
|
||||||
|
|
||||||
@ -94,6 +92,7 @@ def get_cmake_apps(
|
|||||||
extra_default_build_targets: Optional[List[str]] = None,
|
extra_default_build_targets: Optional[List[str]] = None,
|
||||||
) -> List[App]:
|
) -> List[App]:
|
||||||
ttfw_app_dirs = get_ttfw_app_paths(paths, target)
|
ttfw_app_dirs = get_ttfw_app_paths(paths, target)
|
||||||
|
|
||||||
apps = find_apps(
|
apps = find_apps(
|
||||||
paths,
|
paths,
|
||||||
recursive=True,
|
recursive=True,
|
||||||
@ -119,6 +118,9 @@ def get_cmake_apps(
|
|||||||
LOGGER.debug('Skipping build app with pytest scripts: %s', app)
|
LOGGER.debug('Skipping build app with pytest scripts: %s', app)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if app.target == 'linux':
|
||||||
|
app._size_json_path = None # no esp_idf_size for linux target
|
||||||
|
|
||||||
apps_for_build.append(app)
|
apps_for_build.append(app)
|
||||||
|
|
||||||
return apps_for_build
|
return apps_for_build
|
||||||
|
Loading…
Reference in New Issue
Block a user