relay inputs.txt

RelayRunner docs: relay.yml inputs Page: https://relayrunner.dev/docs/reference/relay-inputs Markdown: https://relayrunner.dev/docs/reference/relay-inputs.md All pages: https://relayrunner.dev/docs/llms.txt

Other pages (Markdown):


relay.yml inputs

Every input and output of the relay, a reusable GitHub Actions workflow.

The relay is a reusable workflow in relayrunner/actions. Add one in front of each job you want routed.

jobs:
  relay-test:
    uses: relayrunner/actions/.github/workflows/relay.yml@v1
    with:
      os: linux
      cpus: 4

test:
    needs: relay-test
    runs-on: ${{ needs.relay-test.outputs.runner }}

What the job needs

Say what the job needs, and every provider in your runner order can take it. Each hosted provider gets its smallest runner that fits, and a machine fits when it has the OS and enough cores.

Input Default What it is
os linux linux, macos or windows.
arch the OS's usual arch x64 or arm64. Left out, hosted providers use x64 for Linux and Windows and Apple silicon for macOS, and your machines fit whatever their arch.
cpus the Router page The fewest CPUs the job needs. Left out, the job uses the size you pick for it on the Router page (see Auto sizes), and machines fit at any size.
with:
  os: macos
  cpus: 6

Exact labels

To use a specific runner, give the provider's input. With os, arch or cpus set, that provider uses your label as written and the other providers are still sized for the job; a machine label must also have the OS and arch you set. Without them, only the providers you name can take the job, and a provider you leave out is never used, even if it's in your runner order.

Any input can say auto instead of a label. The Router then picks that provider's label for the job's size, which you set on the dashboard's Router page. See Auto sizes.

Input Default What it is
machine none Comma-separated labels a self-hosted machine must have, all of them. self-hosted accepts any machine. Narrow it with macOS, Linux, ARM64 or X64, such as macOS, ARM64. Ignored for public repos.
github none One GitHub-hosted label, such as ubuntu-latest or macos-latest.
blacksmith none One Blacksmith label, such as blacksmith-4vcpu-ubuntu-2404.
depot none One Depot label, such as depot-ubuntu-24.04.
namespace none One Namespace label, such as namespace-profile-default.
warpbuild none One WarpBuild label, such as warp-ubuntu-latest-x64-2x.
ubicloud none One Ubicloud label, such as ubicloud-standard-2.
boat none One Boat label, such as boat or boat-large.
starsling none One StarSling label, such as starsling-ubuntu-24.04-2. Organizations' repos only.
monkci none One Monk CI label, such as monkci-ubuntu-24.04-2. Organizations' repos only.
runloft none One Runloft label, such as runloft-ubuntu-24.04.
latchkey none One Latchkey label, such as latchkey-small. Organizations' repos only.
berrybox none One BerryBox label, such as berrybox-2vcpu-ubuntu-2404. Organizations' private repos only.
celesto none One Celesto label, such as celesto-standard.
instabox none One InstaBox label, such as instabox-medium.
lizard none One Lizard label, such as lizard-medium-ubuntu-2404. Organizations' repos only.
groundbox none One Groundbox label, such as groundbox-4vcpu, groundbox-windows-4vcpu or groundbox-macos.
runs-on none One RunsOn label, such as runs-on=${{ github.run_id }}/runner=2cpu-linux-x64.

Auto sizes

With auto, you change a job's size on the dashboard instead of in the workflow file:

jobs:
  relay-test:
    uses: relayrunner/actions/.github/workflows/relay.yml@v1
    with:
      machine: auto
      blacksmith: auto
      github: auto
Input What the job gets
blacksmith: auto Blacksmith's runner for the job's size
blacksmith: blacksmith-4vcpu-ubuntu-2404 That label, as written
machine: auto Any of your machines, at its own size
No inputs at all Every provider in your runner order, at the job's size

Output

Output What it is
runner The label to put in the next job's runs-on.

Requirements

Versions

@v1 gets fixes and new features without breaking changes. See releases.

Good to know