Skip to content
somethingwithproofPublic

About

Foundry — A production-quality CI/CD engine with CLI binary `anvil`. Go 1.22+, DAG-based step execution, profiles, policy enforcement.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Foundry

CI Quality Gate Status Go minimum License OpenSSF Scorecard

Languages: English · Deutsch · Español · Français · Português (BR) · 日本語 · 한국어 · 简体中文 · العربية · हिन्दी

All 48 languages

Tier 1: English · Deutsch · Español · Français · Italiano · Português (BR) · Nederlands · Русский · Українська · 日本語 · 한국어 · 简体中文 · 繁體中文 · العربية · हिन्दी · Polski · Türkçe · Svenska · Tiếng Việt · Bahasa Indonesia

African: Afrikaans (ZA) · አማርኛ (ET) · العربية (مصر) · العربية (المغرب) · Français (MA) · Français (SN) · Hausa (NG) · Igbo (NG) · Malagasy (MG) · Kinyarwanda (RW) · Soomaali (SO) · Kiswahili (KE) · isiXhosa (ZA) · Yorùbá (NG) · isiZulu (ZA)

Asian: বাংলা · فارسی · עברית · मराठी · தமிழ் · తెలుగు · ไทย · اردو · Bahasa Melayu · Filipino

South Slavic: Bosanski · Hrvatski · Српски

A profile-based CI runner that turns a YAML configuration into a dependency-ordered execution plan. The same anvil CLI can inspect the plan and execute commands locally or inside a CI job.

Design

  • Configuration defines profiles, steps, dependencies, environment variables, timeouts, and retries.
  • Planning validates dependency ordering and produces the execution plan.
  • Execution runs steps with bounded concurrency and records logs and results.
  • Policy rejects script steps unless enabled. This policy is not an isolation boundary for arbitrary shell commands.

Deterministic planning means the ordering and plan representation can be reproduced for the same configuration. It does not make external commands, services, timestamps, or build artifacts deterministic.

Quick start

Go 1.23.6 or newer is declared in go.mod. From this checkout:

go build -o bin/anvil ./cmd/anvil

Create .foundry.yaml:

version: 1
project:
  name: example
profiles:
  default:
    steps:
      - id: inspect
        type: shell
        command: ["go", "version"]
      - id: test
        type: shell
        deps: ["inspect"]
        command: ["go", "test", "./..."]
bin/anvil doctor
bin/anvil plan --profile default
bin/anvil run --profile default --jobs 4

doctor checks the configuration and Go availability. plan writes .foundry/out/plan.json without running the steps. Use plan for inspection; the current CLI does not implement run --dry-run or --verbose.

CLI

Command Options
doctor --config, --lang
plan --config, --profile, --json, --lang
run --config, --profile, --jobs, --json, --lang
version --json, --lang

The default configuration is .foundry.yaml, the default profile is default, and run concurrency defaults to four jobs. Commands execute with the caller's privileges. Review configuration from untrusted sources before running it.

Localization

anvil ships with embedded translations for 48 locales: 20 Tier 1 (en, de, es, fr, it, pt-BR, nl, ru, uk, ja, ko, zh-CN, zh-TW, ar, hi, pl, tr, sv, vi, id), 15 African (af-ZA, am-ET, ar-EG, ar-MA, fr-MA, fr-SN, ha-NG, ig-NG, mg-MG, rw-RW, so-SO, sw-KE, xh-ZA, yo-NG, zu-ZA), 10 Asian (bn, fa, he, mr, ta, te, th, ur, ms, fil), and 3 South Slavic (bs, hr, sr), with RTL support for ar, ar-EG, ar-MA, fa, he, and ur. Localized READMEs for all 47 non-English locales live under docs/i18n/<locale>/README.md.

Locale selection follows standard POSIX precedence (LC_ALL, then LC_MESSAGES, then LANG) and can be overridden with --lang:

anvil --lang de doctor
LANG=ja_JP.UTF-8 anvil version

Unset, C, POSIX, and unrecognized locales default to English.

Development

make build
make test
make lint
make vet

See the Makefile for the exact commands and tests for configuration, planning, and execution behavior. Linting requires golangci-lint installed separately.

License

Apache License 2.0.

About

Foundry — A production-quality CI/CD engine with CLI binary `anvil`. Go 1.22+, DAG-based step execution, profiles, policy enforcement.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages