runs-on - CI/CD Glossary Definition
runs-on selects which runner a job runs on, by hosted label or self-hosted labels.
runs-on is the required job key that selects which runner executes the job, either by hosted label like ubuntu-latest or by a set of self-hosted labels.
Every job needs runs-on. It maps the job to a hosted image or to self-hosted runners that carry all the listed labels.
Self-hosted example
.github/workflows/ci.yml
jobs:
build:
runs-on: [self-hosted, linux, x64]Related guides
Runner Label - CI/CD Glossary DefinitionRunner Label: A runner label is a tag assigned to a runner that a workflow matches in `runs-on:` to route a j…
GitHub-Hosted Runner - CI/CD Glossary DefinitionGitHub-Hosted Runner: A GitHub-hosted runner is a fresh virtual machine that GitHub provisions and tears down…