mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
artifacts: introduce PRE_PREPARED_HOST=yes: allow running pre-prepared host CLI's for artifacts that require aggregation
This commit is contained in:
@@ -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?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user