Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.3 KB
Raw Blame

description: "GitHub Actions workflows are written in Rust with the xtask_workflows generator, never as hand-written YAML." paths: - ".github/workflows/" - "tooling/xtask/crates/xtask_workflows/" globs: ".github/workflows/,tooling/xtask/crates/xtask_workflows/" alwaysApply: false

Write workflows in Rust with cargo x workflows

Workflow YAML is generated from Rust so jobs share typed runners, secrets, and steps; hand-edited YAML drifts and fails CI's cargo x workflows --check.

  • A new workflow is a module in tooling/xtask/crates/xtask_workflows/src/workflows/ registered in WORKFLOWS (workflows.rs). Reuse runners, vars, and steps instead of inlining labels, env, or step definitions.
  • Change a generated workflow (header DO NOT EDIT) by editing its source module, then run cargo x workflows and commit the regenerated YAML with it.
  • New CI scripts are Rust or TypeScript, never Python. A step with no checkout embeds its script with include_str! and runs it on the hosted image's Node.
  • A few older workflows are still hand-written YAML. When you change one substantially, port it to the generator instead of editing the YAML.

Check: cargo x workflows --check passes and no new .github/workflows/*.yml lacks the generated header.