mirror of
https://github.com/sagiegurari/cargo-make
synced 2026-06-08 17:20:03 +00:00
26 lines
693 B
TOML
26 lines
693 B
TOML
|
|
[plugins.impl.parallel-members]
|
|
script = '''
|
|
plugin_used = get_env PLUGIN_USED
|
|
plugin_used = eq "${plugin_used}" 1
|
|
|
|
if not ${plugin_used}
|
|
set_env PLUGIN_USED 1
|
|
members = split ${CARGO_MAKE_CRATE_WORKSPACE_MEMBERS} ,
|
|
|
|
workspace_dir = pwd
|
|
for member in ${members}
|
|
cd ./${member}
|
|
spawn cargo make --disable-check-for-updates --allow-private --no-on-error ${flow.task.name} %{args}
|
|
cd ${workspace_dir}
|
|
end
|
|
|
|
release ${members}
|
|
else
|
|
task_definition = json_parse --collection ${task.as_json}
|
|
map_remove ${task_definition} workspace
|
|
task_json = json_encode --collection ${task_definition}
|
|
cm_plugin_run_custom_task ${task_json}
|
|
end
|
|
'''
|