Skip to main content
GitHub Actions runners are in private preview. Contact support to request access.
Ravion runs your GitHub Actions jobs on machines in your AWS account. Change a job’s runs-on to a Ravion label, and Ravion starts a fresh runner for that one job, in the execution environment the label names.

Quick setup

Copy this prompt into your coding agent in the repository containing your GitHub Actions workflows:

Set up Ravion runners with automatic sizing and Spot where safe.

Open in Cursor
For example, a test job that is safe to rerun:
Replace github-actions with your execution environment’s given ID or unique ID, and test in the label’s id with a distinct name for each job. Keep the run ID, run attempt and matrix index expressions so concurrent jobs don’t share a label. See Unique labels.
Use type=sandbox for your jobs. Sandboxes boot in seconds, keep the whole disk between runs, and pack many jobs onto each host. Use type=ec2 only when a job needs ARM or a whole EC2 instance. Avoid type=ec2-spot: if AWS reclaims the instance, GitHub fails the job.

How it works

  1. GitHub sends Ravion a webhook when a job using either Ravion label format is queued. See Ravion label format.
  2. Ravion registers a just-in-time runner for that job only, and starts a sandbox or EC2 instance for it in your execution environment.
  3. The runner picks up the job, runs it, and is removed when the job ends. Each job gets a fresh runner. On sandboxes, its disk starts from an earlier run’s saved disk unless you set disk_cache=off. See Disk cache.
Runners run in your execution environment’s VPC, so jobs can reach private resources in it, such as databases, without exposing them to GitHub. They connect out to GitHub and Ravion, so they need no inbound ports. Sandbox jobs run on the same autoscaling fleet as sandbox pipeline steps. See Sandboxes for how hosts are placed, scaled, cached and priced.

Startup time

In our benchmarks, these are the p50 times for a sandbox job, from GitHub queueing it to its first step: Public-repository jobs take a few seconds longer. For private repositories, Ravion takes the job only once its sandbox is up, so while a host boots the job shows Queued in GitHub, not In progress. Public-repository jobs are taken right away for identity checks, so they show In progress while the host boots. To avoid boot waits after quiet periods, keep hosts on hand with sandbox settings.

Requirements

  • GitHub App. The Ravion GitHub App is installed on a GitHub organization and connected to your Ravion organization. Runners register at the organization level, so personal accounts aren’t supported.
  • AWS account. Your AWS account is connected in Settings / AWS accounts. Sandboxes require AWS account role policy 1.0.52 or later. See Update your AWS permissions.
  • Execution environment. Create one in that AWS account in Settings / Execution environments. Ravion doesn’t create it for you. Set the label’s required ee value to its given ID (for example, ee=github-actions) or unique ID (ee=ee_…). Both refer to an execution environment in your organization; a job whose ee doesn’t match one fails. The first sandbox job sets up the environment’s sandbox hosts, so there’s nothing else to provision.

Use a dedicated execution environment

Run GitHub Actions in its own execution environment, not the one your production services use. Ideally, put it in a separate AWS account, or at least a different region, from production. To pick the region, see Choose a region. CI jobs run code from every branch and from third-party actions. A separate environment keeps those jobs in their own VPC, away from production resources. A separate AWS account also keeps AWS permissions and service quotas apart, so a busy CI day can’t use up capacity production needs. Ravion creates a runner group named Ravion in your GitHub organization the first time it registers a runner. The group is available to all private repositories in the organization.

Labels

A Ravion label is either one label that starts with ravion/ and contains key=value segments separated by /, or a list with a bare ravion label and separate key=value labels. Keep the Ravion label or list as the job’s only runner configuration; don’t combine it with self-hosted or other labels. You can also write the quick setup label as a list. The order of the entries doesn’t matter:
Both forms mean exactly the same thing. Keep the id value unique for each concurrent job.

Sandbox

Mark jobs that are safe to run twice as interruptible=true, such as tests, lint and builds. Leave it off for jobs that publish, deploy or push.

Automatic sizing

Self-sizing jobs: stop guessing machine sizes. Set cpu, memory or disk to auto and Ravion sizes the sandbox for you.
Every run teaches Ravion what the job needs. Sizes grow fast when a job needs more, come down gradually when it needs less, then settle. Each job runs on the right machine at the right cost.
  • Automatic CPU, memory and disk work with or without interruptible=true. You can mix automatic and fixed values.
  • Automatic sizing starts at 4 vCPU, 16 GiB memory and 40 GiB disk. Fixed values stay fixed.
  • Sizes are learned per repository, workflow file and job name.
  • For interruptible jobs, Ravion can test smaller sizes. If a job runs out of memory or disk, Ravion gives it more and reruns it automatically, up to twice per workflow run. GitHub shows the failed attempt, then the rerun.
For jobs that must not run twice, leave interruptible off:
Ravion keeps extra memory and disk headroom and reduces them only after successful, representative measurements. It doesn’t test smaller memory sizes or automatically rerun these jobs after a sizing failure. If a job runs out of memory or disk, fix the cause or set a fixed size before rerunning it. If the required size won’t fit your execution environment, the job fails rather than running with fewer resources. The job’s log shows the size Ravion picked and why.

EC2

EC2 runners start a whole instance per job, boot Amazon Linux 2023, and have no disk cache. If AWS reclaims an ec2-spot instance, GitHub fails the job.

The runner image

Sandbox jobs boot an x86_64 Ubuntu 24.04 image. It has the apt packages GitHub’s ubuntu-24.04 runner image installs, such as git and Git LFS, build-essential, Clang 18 (clang-18, lld-18, lldb-18, clang-format-18 and clang-tidy-18), zip, rsync, wget, brotli, sqlite3 and the PostgreSQL client. It also has GitHub CLI (gh), Node.js 24, Docker with Docker Compose, the AWS CLI, jq, yq, ccache, sccache and Bazelisk (as bazel). Like GitHub’s images, apt-get install doesn’t ask for confirmation. See What runs inside a sandbox. The image is still much smaller than GitHub’s hosted runner images. Their ubuntu-latest also comes with several versions each of Node.js, Python, Java, Go, Ruby and .NET, plus browsers, databases and cloud tools. The Ravion image doesn’t. If a job needs something missing, install it natively in a run step:
  • System packages with apt-get, for example apt-get update && apt-get install -y python3-pip. Jobs run as root.
  • Language versions with the usual setup-* actions, such as actions/setup-node, actions/setup-python or actions/setup-java.
  • Anything else by downloading its binary or installer.
With the disk cache on, what you install usually stays for later runs. Only runs whose trigger can write the cache save their disk, so some jobs install on every run. See Disk cache.
Runners are in private preview. If a job hits a problem you can’t explain — a tool that won’t install, a missing kernel feature, or anything unexpected — contact support.

Unique labels

GitHub can hand a queued job to any idle runner whose labels match. Every job needs an id that is unique to it, so a runner Ravion started for one job never picks up another. Build it from the run ID, the run attempt, the job’s name and its matrix index:

Invalid labels

Invalid configuration in either label format fails a private job, and the job’s annotation says which key is wrong. Unrelated extra labels (for example, self-hosted) or multiple Ravion namespaces leave the job queued.

Track cost and usage

Go to Settings / Execution environments and choose your CI environment.
  • Usage shows what your jobs cost. In By pipeline, expand GitHub Actions Runner to see runs, minutes, AWS cost and Ravion cost for each repository, then each workflow. Time to start shows how long jobs waited for capacity and for their runner to start. Costs show up about an hour after jobs run.
  • Sandbox hosts shows the hosts running now, how many jobs they’re running, and each host’s CPU and memory use. Hover a host’s chart to see the jobs on it.
See Track cost and hosts for everything on these tabs.

Public repositories

Jobs from public repositories, including pull requests from forks, run only on sandboxes, and only when you allow them:
  1. Go to Settings / Execution environments, choose the environment, then open Config / Sandboxes.
  2. Turn on Allow public repositories.
Each public repository gets its own runner group, and its jobs run without a disk cache. Automatic sizing works the same as for private repositories, including automatic reruns for interruptible jobs only. Jobs from public repositories with an invalid label, or that ask for EC2, stay queued.

Next steps

Caching

Disk cache, Actions cache and artifacts.

Sandboxes

How the sandbox fleet, disk cache and Spot hosts work.

Sandbox settings

Machine types, idle hosts and host storage.