GitHub Actions runners are in private preview. Contact support to request access.
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
- Connect your GitHub organization and AWS account, then create a dedicated CI execution environment. See Requirements.
- Use
type=sandboxwithcpu=auto,memory=autoanddisk=autofor automatic sizing. - Add
interruptible=trueonly to jobs that are safe to stop and rerun from the beginning. This allows Spot hosts; leave it off for jobs that publish, deploy or push.
Set up Ravion runners with automatic sizing and Spot where safe.
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.
How it works
- GitHub sends Ravion a webhook when a job using either Ravion label format is queued. See Ravion label format.
- Ravion registers a just-in-time runner for that job only, and starts a sandbox or EC2 instance for it in your execution environment.
- 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.
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
eevalue 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 whoseeedoesn’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 withravion/ 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:
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. Setcpu, memory or disk to auto and Ravion sizes the sandbox for you.
- 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.
interruptible off:
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’subuntu-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 exampleapt-get update && apt-get install -y python3-pip. Jobs run as root. - Language versions with the usual
setup-*actions, such asactions/setup-node,actions/setup-pythonoractions/setup-java. - Anything else by downloading its binary or installer.
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 anid 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.
Public repositories
Jobs from public repositories, including pull requests from forks, run only on sandboxes, and only when you allow them:- Go to Settings / Execution environments, choose the environment, then open Config / Sandboxes.
- Turn on Allow public repositories.
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.