Files
wrkflw/crates/matrix
bahdotsh 960f7486a2 Release 0.7.0
wrkflw@0.7.0
wrkflw-evaluator@0.7.0
wrkflw-executor@0.7.0
wrkflw-github@0.7.0
wrkflw-gitlab@0.7.0
wrkflw-logging@0.7.0
wrkflw-matrix@0.7.0
wrkflw-models@0.7.0
wrkflw-parser@0.7.0
wrkflw-runtime@0.7.0
wrkflw-ui@0.7.0
wrkflw-utils@0.7.0
wrkflw-validators@0.7.0

Generated by cargo-workspaces
2025-08-13 18:07:11 +05:30
..
2025-08-13 18:07:11 +05:30

wrkflw-matrix

Matrix expansion utilities used to compute all job combinations and format labels.

  • Supports include, exclude, max-parallel, and fail-fast
  • Provides display helpers for UI/CLI

Example

use wrkflw_matrix::{MatrixConfig, expand_matrix};
use serde_yaml::Value;
use std::collections::HashMap;

let mut cfg = MatrixConfig::default();
cfg.parameters.insert("os".into(), Value::from(vec!["ubuntu", "alpine"])) ;

let combos = expand_matrix(&cfg).expect("expand");
assert!(!combos.is_empty());