#github-actions #logging #ci #azure-pipelines

bin+lib ci_group

RAII log groups for GitHub Actions and Azure Pipelines. Fixes swallowed logs.

1 unstable release

0.1.0 Dec 29, 2025

#842 in Testing

Download history 65/week @ 2025-12-29 85/week @ 2026-01-05 99/week @ 2026-01-12 18/week @ 2026-01-19 55/week @ 2026-01-26

276 downloads per month
Used in tenuo

MIT/Apache

9KB
131 lines

ci_group

Crates.io Docs.rs License

A lightweight RAII library for log groups in GitHub Actions and Azure Pipelines.

Fixes "swallowed logs" by closing groups automatically when dropped, preserving output even on panic.

Install

[dependencies]
ci_group = "0.1"

Usage

let _g = ci_group::open("Build");
build(); // group closes automatically, even on panic

Or use the macro:

ci_group::group!("Build", {
    build()?;
});

Local development

No output outside CI. To preview locally:

GITHUB_ACTIONS=true cargo run   # GitHub Actions
TF_BUILD=true cargo run          # Azure Pipelines

Limitation

RAII cannot help if code calls std::process::exit() - destructors are skipped. Return from main() instead.

License

MIT OR Apache-2.0

No runtime deps