Skip to content
Snippets Groups Projects
Commit 1881f4ef authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Also handle ccache module via default factory

parent c9c4c3f8
No related branches found
No related tags found
1 merge request!482Fix some aspects of `axii ci workspace create`
Pipeline #7683 passed
......@@ -25,6 +25,10 @@ def ci_workspace_create(
def workspace_default_config_factory():
from armarx_setup.core.workspace.config import Config
modules = dict()
if ccache:
modules["tools/ccache/default"] = {}
cmake_definitions = {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
}
......@@ -40,7 +44,7 @@ def ci_workspace_create(
}
}
return Config(
modules={},
modules=modules,
global_=global_,
)
......@@ -52,12 +56,8 @@ def ci_workspace_create(
workspace_default_config_factory=workspace_default_config_factory,
)
with_modules = list(with_modules)
if ccache:
with_modules.append("tools/ccache/default")
# Add requested modules.
for module in [ci_module_name] + with_modules:
for module in [ci_module_name] + list(with_modules):
ws.add_module(module, store=False)
ws.store_config()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment