Skip to content

Use a Pool in Workflows

To run a job on your pool, change its runs-on line. Nothing else in the workflow has to change.

jobs:
build:
runs-on: [self-hosted, quant, build, x64]
steps:
- uses: actions/checkout@v4
- run: docker build -t my-app .

The four labels are self-hosted, quant, the name of your pool, and the architecture (x64 or arm64). Each pool in the dashboard has a Copy runs-on line button for each of its architectures.

A pool serves a job only when every label in runs-on is one of these:

  • self-hosted
  • linux
  • quant
  • the pool name
  • at most one architecture label (x64 or arm64) that the pool has

A job with any other label is not picked up. It stays queued on GitHub, and the pool shows the alert A job asked for labels this pool does not have. Quant cannot cancel the job. Cancel it in GitHub and fix runs-on.

Use arm64 for images that run on ARM64 environments and x64 for images that run on x86_64 environments. A native build is much faster than a build under QEMU emulation.

To build for both architectures, run one job on each and join the results:

jobs:
image:
strategy:
matrix:
arch: [arm64, x64]
runs-on: [self-hosted, quant, build, "${{ matrix.arch }}"]
steps:
- uses: actions/checkout@v4
- run: docker build -t "$IMAGE:$GITHUB_SHA-${{ matrix.arch }}" .

The pool must offer every architecture your jobs ask for. A job that asks for an architecture the pool does not have stays queued.

The runner image is lean. Add a setup action for each language a job uses:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci && npm test

Docker, Git, the GitHub CLI (gh), the AWS CLI, Node.js, jq, yq and zstd are already on the image.

Docker works without any setup. Service containers, container: jobs and Docker Compose behave as they do on GitHub-hosted runners.

Each job starts in a fresh container, so nothing a job writes to disk is there for the next job.

Each job has 6 GiB of memory on the Small tier, and 14 GiB on the Medium and Large tiers. Each job may have at most 16,384 processes and threads. Jobs on one virtual machine share its disk. See Job limits.

actions/cache, the cache: input of setup actions such as actions/setup-node, and Docker buildx cache-from/cache-to: type=gha work as they do on GitHub-hosted runners. On a Quant pool, the caches stay in Australia by default. Buildx type=gha needs a docker/setup-buildx-action step before build-push-action, because the default Docker driver cannot export a gha cache. See Build Cache for the branch rules and limits.

GitHub’s OpenID Connect tokens work on Quant runners. A job with permissions: id-token: write can exchange its token for short-lived cloud credentials, for example with aws-actions/configure-aws-credentials, so you do not need to store a cloud access key as a secret.

The tier sets how many jobs run at once. When all slots are busy, GitHub shows further jobs as queued, and they start as slots become free. Jobs are not dropped.

When a pool has been idle, its machines are stopped. The first job then waits about a minute for a machine to start. To avoid the wait during the working day, turn on Keep one VM warm in business hours for the pool.

Using Quant and GitHub-hosted runners together

Section titled “Using Quant and GitHub-hosted runners together”

You can move one job at a time. Jobs with runs-on: ubuntu-latest keep running on GitHub, and jobs with your pool’s labels run on Quant.

A pool runs jobs of public repositories only when Quant has enabled that for the pool. Otherwise the job is refused before its first step, so keep those workflows on GitHub-hosted runners.