1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! CI Pipeline Execution Module
//!
//! Provides three modalities for CI pipeline management:
//!
//! 1. **Unified Runner** (`cuenv ci --pipeline <name>`)
//! - Runs pipelines locally or in CI environments identically
//! - Local parallel process execution with bounded concurrency
//! - Reports to GitHub Check Runs with live updates
//!
//! 2. **Dynamic Export** (`cuenv ci --pipeline <name> --export <format>`)
//! - Generates pipeline YAML to stdout or file
//! - Supports: buildkite, gitlab, github-actions, circleci
//!
//! 3. **Static Sync** (via `cuenv sync ci`)
//! - Generates workflow files with thin/expanded modes
//! - Configurable per-pipeline in env.cue
pub use ;
use Result;
/// Execute CI command based on arguments.
///
/// Routes to either:
/// - Export mode: Generate pipeline YAML
/// - Runner mode: Execute pipeline locally/in CI
///
/// # Errors
///
/// Returns error if pipeline execution fails, export fails, or configuration is invalid.
pub async