The label you assign to your runs-on:
directive in your GitHub Actions workflow yml lets you directly control where
your jobs run, on what instance type they run, what image they use and how much temp storage they get.
For Sprinters at the bare minimum it looks like this:
runs-on: sprinters:aws/ubuntu-latest
The label in the example above tells Sprinters to run your job on AWS using the ubuntu-latest
image. This image is
identical to the one provided by GitHub.
A number of defaults will also be applied automatically to most closely matches the capacity of GitHub hosted runners:
t3.2xlarge
(x64 with 2 vCPUs).14
GiB of temp disk space and 4
GiB of swap.The instance placement will be as follows:
us-east-1
region in your account’s default VPC.This specification can be customized by adding various parts to the label. The order doesn’t matter. All parts are separated by a /
.
Here is a more complex example:
runs-on: sprinters:aws/ubuntu-22.04/eu-central-1/m7i.24xlarge/temp=64
This will launch a runner using the ubuntu-22.04
image in the eu-central-1
region on a m7i.24xlarge
instance with 64
GiB of temp space.
The following label parts can be added or modified to customize the placement and capacity of the instance:
You can set the image for the runner by replacing the one in the label.
Format: image-name
Default: ubuntu-latest
Type | Arch | Description |
---|---|---|
ubuntu-latest ubuntu-24.04 |
x64 | Ubuntu 24.04 image identical to the one available for GitHub hosted runners |
ubuntu-22.04 |
x64 | Ubuntu 22.04 image identical to the one available for GitHub hosted runners |
minimal |
x64 and arm64 | Minimal, fast-booting image containing only Git and Docker |
To set the image to minimal
, change the label to:
runs-on: sprinters:aws/minimal
You can set the AWS region where to launch the runner by appending it to the label.
Format: aws-region
Default: us-east-1
eu-central-1
us-east-1
More regions will be added soon. To request support for a specific region, file an issue in the issue tracker.
To set the region to eu-central-1
and run using the minimal
image, change the label to:
runs-on: sprinters:aws/minimal/eu-central-1
Within an AWS region, you can pick the availability of your choice where to launch the runner by appending the availability zone to the label.
Format: aws-availability-zone
Default: availability zone of the selected region that currently has the lowest spot price for the selected instance type
To use the eu-central-1c
availability zone, change the label to:
runs-on: sprinters:aws/ubuntu-latest/eu-central-1c
Within an AWS region, you can pick the subnet in the VPC of your choice where to launch the runner by appending the subnet ID to the label.
Format: aws-subnet-id
Default: default subnet of the default VPC in the selected availability zone of the selected region
To use the subnet-0123456789abcdef0
subnet, change the label to:
runs-on: sprinters:aws/ubuntu-latest/subnet-0123456789abcdef0
You can set the AWS EC2 instance type on which launch the runner by appending it to the label.
Format: aws-instance-type
Default: t3.2xlarge
Family | Arch | Sizes |
---|---|---|
m7i | x64 | m7i.large , m7i.xlarge , m7i.2xlarge , m7i.4xlarge , m7i.8xlarge , m7i.12xlarge , m7i.16xlarge , m7i.24xlarge , m7i.48xlarge |
t3 | x64 | t3.nano , t3.micro , t3.small , t3.medium , t3.large , t3.xlarge , t3.2xlarge |
t3a | x64 | t3a.nano , t3a.micro , t3a.small , t3a.medium , t3a.large , t3a.xlarge , t3a.2xlarge |
t4g | arm64 | t4g.nano , t4g.micro , t4g.small , t4g.medium , t4g.large , t4g.xlarge , t4g.2xlarge |
More instance families will be added soon. To request support for a specific instance family, file an issue in the issue tracker.
To set the instance type to m7i.8xlarge
, change the label to:
runs-on: sprinters:aws/ubuntu-latest/m7i.8xlarge
To save significant amounts of money at a slight risk of being interrupted, the instance can be launched as a spot instance.
Format: spot=auto|true|false
Default: auto
Mode | Description |
---|---|
auto |
Attempt to launch the instance as spot. Automatically fall back to on-demand if AWS currently doesn’t have enough spot capacity available. This guarantees that a job will be able to run and most of the time it will do so saving significant amounts of money using a spot instance. |
true |
Force the instance to launch as spot. Fail if AWS currently doesn’t have enough spot capacity available. |
false |
Always run as on-demand, foregoing the savings of spot for guaranteed execution. |
If neither a subnet id nor an availability zone was specified, Sprinters will automatically select the availability zone with the cheapest spot price.
To use a much cheaper spot instance, change the label to:
runs-on: sprinters:aws/ubuntu-latest/spot=true
You can set the temp disk space available for the runner from 1
GiB to 16384
GiB by appending it to the label.
Format: temp=size-in-gib
Default: 14
To set the temp disk space to 512
GiB, change the label to:
runs-on: sprinters:aws/ubuntu-latest/temp=512
You can set the swap size for the runner from 1
GiB to 16384
GiB by appending it to the label.
Format: swap=size-in-gib
Default: 4
To set the swap size to 64
GiB, change the label to:
runs-on: sprinters:aws/ubuntu-latest/swap=64