alidist icon indicating copy to clipboard operation
alidist copied to clipboard

Allow shortcutting builds

Open ktf opened this issue 1 year ago • 3 comments

This shows how the alibuild-variant-support package could be used to e.g. speed up builds of O2Physics tutorials by only building the Tutorials/install target, rather than the whole package.

ktf avatar Oct 08 '23 12:10 ktf

@aalkin @TimoWilken this is what I think I was mentioning last week / in the past.

Right now it would only work with:

ALIBUILD_BUILD_VARIANT=tutorial aliBuild build O2Physics --defaults o2 --debug

but it would be cool to have support in aliBuild so that one could do:

aliBuild build O2Physics#tutorials --defaults o2 --debug

with the "#tutorial" being stripped to determine the package name, yet inserted in the develHash, so that if one drops it, it rebuilds the development package without need to cleanup.

ktf avatar Oct 08 '23 12:10 ktf

Are there any docs on how to use ALIBUILD_BUILD_VARIANT? It seems like interesting feature.

awegrzyn avatar Oct 12 '23 06:10 awegrzyn

not yet, we are still developing the idea. we could brainstorm things a bit together though, since indeed you / FLP was one of the customers I had in mind for such a feature.

ktf avatar Oct 12 '23 13:10 ktf