async fn build_directory( input_dir: &Path, output: Option<PathBuf>, recursive: bool, log: &LogSender, tera: &Tera, ) -> Result<Vec<ArtifactPath>>