Faster, Better, Cheaper runners with one line change
You don't need a .cirun.yml file to get GitHub Actions runners on your cloud. After you have
connected your cloud provider, describe the machine you want in the runs-on label of your
workflow, .github/workflows/<YOUR_WORKFLOW_NAME>.yml:
runs-on: "cirun/aws/t3.large/50gb--${{ github.run_id }}"
This launches a t3.large with a 50 GB disk on your AWS account, running the latest Ubuntu 26.04 LTS.
Label format
cirun/<cloud>/<instance type>[+<instance type>...][/<N>gb][/spot]--<unique suffix>
| Part | Meaning |
|---|---|
<cloud> | aws, gcp or azure |
<instance type> | The instance type, spelled exactly as your cloud names it, e.g. t3.large, e2-standard-4, Standard_D4s_v3 |
+<instance type> | Fallback instance types, tried in order when the previous one cannot be launched |
<N>gb | Disk size, from 10 to 2048 GB |
spot | Use a spot (preemptible) instance |
--<unique suffix> | Makes the label unique per run, see unique runner labels |
The cloud and instance types come first. Disk size and spot are optional and can come in any order.
Examples
# AWS t3.large
runs-on: "cirun/aws/t3.large--${{ github.run_id }}"
# AWS t3.large, falling back to t2.large, with a 50 GB disk
runs-on: "cirun/aws/t3.large+t2.large/50gb--${{ github.run_id }}"
# AWS Graviton (Arm)
runs-on: "cirun/aws/t4g.large--${{ github.run_id }}"
# GCP spot instance with a 100 GB disk
runs-on: "cirun/gcp/e2-standard-4/100gb/spot--${{ github.run_id }}"
# Azure
runs-on: "cirun/azure/Standard_D4s_v3--${{ github.run_id }}"
Defaults
| Cloud | Region | Disk when not set |
|---|---|---|
| AWS | eu-west-1 | 75 GB |
| GCP | us-central1-b | 120 GB |
| Azure | eastus | Image default |
The runner uses the latest official Ubuntu 26.04 LTS image. Arm instance types (e.g. AWS t4g,
GCP t2a, Azure Standard_D4ps_v5) get the arm64 image, all others the amd64 image. Each fallback
instance type gets the image that matches its own CPU architecture.
To choose the region, image, GPU or any other setting, use a .cirun.yml instead.
Rules
- A runner in your
.cirun.yml(or organization.cirun.global.yml) whose label matches always wins. The label is read as a machine description only when no configured runner matches. - Use
+between instance types, not a comma. A comma splits the label in two when the runner registers with GitHub, and the job would never be picked up. - When a job uses a
cirun/<cloud>/...label, all labels in itsruns-onmay contain only letters, digits and. _ - + /, and be at most 256 characters long. - Use one
cirun/<cloud>/...label per job. - A mistyped label (unknown option, invalid instance type or disk size) fails the job with an error check run on the commit that explains the format.
GCP c4a and n4a instance types cannot be launched from a label yet.
Predefined labels
These labels launch a predefined runner when your repository has no .cirun.yml:
| Label | Machine |
|---|---|
cirun-aws-t2-large-ubuntu2204 | AWS t2.large, Ubuntu 22.04, eu-west-1 |
cirun-aws-g4dn-xlarge-nvidia-ubuntu2204 | AWS g4dn.xlarge with NVIDIA GPU, Ubuntu 22.04, eu-west-1 |
cirun-gcp-n1-standard-1-ubuntu2204 | GCP n1-standard-1, Ubuntu 22.04 |
cirun-gcp-n1-standard-1-nvidia-tesla-t4-ubuntu2204 | GCP n1-standard-1 with NVIDIA Tesla T4, Ubuntu 22.04, tried across several US zones |
cirun-azure-standard-ds1-v2-ubuntu1804 | Azure Standard_DS1_v2, Ubuntu 18.04 |
runs-on: "cirun-aws-t2-large-ubuntu2204--${{ github.run_id }}"