Skip to content

Broker honors workflow-level environment so a run shares ONE node #2893

Broker honors workflow-level environment so a run shares ONE node

Broker honors workflow-level environment so a run shares ONE node #2893

name: Rust Workspace CI
on:
pull_request:
push:
permissions:
contents: read
concurrency:
group: rust-workspace-ci-${{ github.ref }}
cancel-in-progress: true
env:
# GitHub Actions runner Node 20 -> Node 24 deprecation (effective 2026-06-02).
# Forces JS-based actions onto Node 24 ahead of the cutover.
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
timeout-minutes: 10
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache Cargo build artifacts
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 20
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install Linux build deps (libdbus for keyring crate)
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config
- name: Cache Cargo build artifacts
uses: Swatinem/rust-cache@v2
- name: Run clippy
run: cargo clippy --workspace --all-targets --locked -- -D warnings
cargo-check:
name: cargo-check (workspace)
runs-on: ubuntu-latest
timeout-minutes: 30
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install Linux build deps (libdbus for keyring crate)
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config
- name: Cache Cargo build artifacts
uses: Swatinem/rust-cache@v2
- name: Check workspace
# Workspace-wide check keeps every runtime-critical crate covered
# (see docs/guides/ci-cd.md) without a manual matrix that drifts
# from the doc list. Single job + shared cache is also cheaper
# than the prior fan-out.
run: cargo check --locked --all-targets --workspace
smoke-help:
name: smoke-help
runs-on: ubuntu-latest
timeout-minutes: 20
needs: cargo-check
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install Linux build deps (libdbus for keyring crate)
run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev pkg-config
- name: Cache Cargo build artifacts
uses: Swatinem/rust-cache@v2
- name: Smoke test animus help
run: cargo run --locked -p orchestrator-cli --bin animus -- --help