Skip to main content

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>
PartMeaning
<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>gbDisk size, from 10 to 2048 GB
spotUse 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​

CloudRegionDisk when not set
AWSeu-west-175 GB
GCPus-central1-b120 GB
AzureeastusImage 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 its runs-on may 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.
note

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:

LabelMachine
cirun-aws-t2-large-ubuntu2204AWS t2.large, Ubuntu 22.04, eu-west-1
cirun-aws-g4dn-xlarge-nvidia-ubuntu2204AWS g4dn.xlarge with NVIDIA GPU, Ubuntu 22.04, eu-west-1
cirun-gcp-n1-standard-1-ubuntu2204GCP n1-standard-1, Ubuntu 22.04
cirun-gcp-n1-standard-1-nvidia-tesla-t4-ubuntu2204GCP n1-standard-1 with NVIDIA Tesla T4, Ubuntu 22.04, tried across several US zones
cirun-azure-standard-ds1-v2-ubuntu1804Azure Standard_DS1_v2, Ubuntu 18.04
runs-on: "cirun-aws-t2-large-ubuntu2204--${{ github.run_id }}"