# ffmpeg/ffmpeg-ci architecture

> Architecture diagram of the GitHub repository ffmpeg/ffmpeg-ci, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ffmpeg/ffmpeg-ci
- Repository: https://github.com/ffmpeg/ffmpeg-ci

## Overview

The README describes a bridge that lets Forgejo jobs run on GitHub infrastructure. The tree suggests GitHub Actions for runner and Caddy setup, plus proxy and platform configuration, but no source excerpts or detailed README statements show how these pieces interact. CI and repository-maintenance files are omitted; the component relationships beyond the documented bridge are therefore not inferred.

Main entry points: [`README`](https://github.com/ffmpeg/ffmpeg-ci/blob/master/README) (Workflow bridge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_actions["GitHub Actions"]
  node_bridge["Workflow bridge"]
  node_setup_runner["Setup runner<br/>[action.yml]"]
  node_setup_caddy["Setup Caddy<br/>[action.yml]"]
end

subgraph group_proxy["Cache Proxy"]
  node_cacheproxy_config["Proxy configuration<br/>[Caddyfile.in]"]
  node_cacheproxy_generation["Config generation<br/>[genconfig.sh]"]
end

subgraph group_runner["Runner Configuration"]
  node_linux_config["Linux settings<br/>[config_linux.yaml]"]
  node_osx_config["macOS settings<br/>[config_osx.yaml]"]
  node_windows_config["Windows settings<br/>[config_win64.yaml]"]
end

node_forgejo(("Forgejo jobs"))
node_github_infra(("GitHub infrastructure"))

node_forgejo -->|"submits jobs"| node_bridge
node_bridge -->|"runs jobs on"| node_github_infra

click node_bridge "https://github.com/ffmpeg/ffmpeg-ci/blob/master/README"
click node_setup_runner "https://github.com/ffmpeg/ffmpeg-ci/blob/master/.github/actions/setup-runner/action.yml"
click node_setup_caddy "https://github.com/ffmpeg/ffmpeg-ci/blob/master/.github/actions/setup-caddy/action.yml"
click node_cacheproxy_config "https://github.com/ffmpeg/ffmpeg-ci/blob/master/cacheproxy/Caddyfile.in"
click node_cacheproxy_generation "https://github.com/ffmpeg/ffmpeg-ci/blob/master/cacheproxy/genconfig.sh"
click node_linux_config "https://github.com/ffmpeg/ffmpeg-ci/blob/master/config_linux.yaml"
click node_osx_config "https://github.com/ffmpeg/ffmpeg-ci/blob/master/config_osx.yaml"
click node_windows_config "https://github.com/ffmpeg/ffmpeg-ci/blob/master/config_win64.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_bridge,node_setup_runner,node_setup_caddy toneBlue
class node_cacheproxy_config,node_cacheproxy_generation toneAmber
class node_linux_config,node_osx_config,node_windows_config toneMint
class node_forgejo,node_github_infra toneIndigo
```

## Components

### GitHub Actions

- [Workflow bridge](https://github.com/ffmpeg/ffmpeg-ci/blob/master/README): `README`
- [Setup runner](https://github.com/ffmpeg/ffmpeg-ci/blob/master/.github/actions/setup-runner/action.yml): `.github/actions/setup-runner/action.yml`
- [Setup Caddy](https://github.com/ffmpeg/ffmpeg-ci/blob/master/.github/actions/setup-caddy/action.yml): `.github/actions/setup-caddy/action.yml`

### Cache Proxy

- [Proxy configuration](https://github.com/ffmpeg/ffmpeg-ci/blob/master/cacheproxy/Caddyfile.in): `cacheproxy/Caddyfile.in`
- [Config generation](https://github.com/ffmpeg/ffmpeg-ci/blob/master/cacheproxy/genconfig.sh): `cacheproxy/genconfig.sh`

### Runner Configuration

- [Linux settings](https://github.com/ffmpeg/ffmpeg-ci/blob/master/config_linux.yaml): `config_linux.yaml`
- [macOS settings](https://github.com/ffmpeg/ffmpeg-ci/blob/master/config_osx.yaml): `config_osx.yaml`
- [Windows settings](https://github.com/ffmpeg/ffmpeg-ci/blob/master/config_win64.yaml): `config_win64.yaml`

### Other components

- **Forgejo jobs**
- **GitHub infrastructure**

## Connections

- Forgejo jobs → Workflow bridge: submits jobs (evidence: `README`)
- Workflow bridge → GitHub infrastructure: runs jobs on (evidence: `README`)
