Canopy

A modular implementation of the GitHub Actions protocol, in Rust.

It comes in two halves. The SDK is a set of crates covering the protocol itself: the workflow format, the expression language, the contexts, the planner, the runner, and the wire protocol a self-hosted runner speaks to GitHub. The canopy binary is one composition of those crates, which runs a workflow on your machine.

canopy

canopy run .github/workflows/ci.yml          # run it here
canopy run ci.yml --job build -n             # what would run, and in what order
canopy lint ci.yml                           # what is wrong with it
canopy lsp                                   # language server, over stdio

The SDK

cratewhat it is
gh-actions-specThe workflow and action.yml file formats, as types
gh-actions-exprThe ${{ }} language: lexer, parser, evaluator, and what an expression reads
gh-actions-contextThe contexts a run exposes
gh-actions-planConverts workflows to valid jobs
gh-actions-lintLinting checks for the workflows
gh-actions-runnerRuns a planned job
gh-actions-servicesThe artifact and cache services a job talks to
gh-actions-listenerThe protocol a self-hosted runner speaks: register, poll, acquire, report

Examples

examples holds other ways the same crates go together:

examplewhat it is
gh-runner-localTakes jobs from GitHub and runs them on this machine
gh-runner-fargate-ondemandTakes jobs from GitHub and gives each one an AWS Fargate task