artifacts: introduce PRE_PREPARED_HOST=yes: allow running pre-prepared host CLI's for artifacts that require aggregation

This commit is contained in:
Ricardo Pardini
2023-04-09 15:40:29 +02:00
parent 538b8c2b79
commit eb1fe6d7ba
8 changed files with 51 additions and 24 deletions

View File

@@ -24,7 +24,13 @@ function cli_artifact_run() {
display_alert "artifact" "${chosen_artifact}" "debug"
display_alert "artifact" "${chosen_artifact} :: ${chosen_artifact_impl}()" "debug"
artifact_cli_adapter_config_prep # only if in cli.
declare -g artifact_version_requires_aggregation="no" # marker
artifact_cli_adapter_config_prep # only if in cli.
# if asked by _config_prep to aggregate, and HOSTRELEASE is not set, obtain it.
if [[ "${artifact_version_requires_aggregation}" == "yes" ]] && [[ -z "${HOSTRELEASE}" ]]; then
obtain_hostrelease_only # Sets HOSTRELEASE
fi
# When run in GHA, assume we're checking/updating the remote cache only.
# Local cache is ignored, and if found, it's not unpacked, either from local or remote.
@@ -64,9 +70,5 @@ function cli_artifact_run() {
skip_unpack_if_found_in_caches="no"
fi
if [[ "${CONFIG_DEFS_ONLY}" != "yes" ]]; then
do_with_default_build obtain_complete_artifact # @TODO: < /dev/null -- but what about kernel configure?
else
obtain_complete_artifact
fi
do_with_default_build obtain_complete_artifact # @TODO: < /dev/null -- but what about kernel configure?
}