cmake: Add --workflow mode

Fixes: #23118
58 files changed