What is a runner, and how do GitHub-hosted and self-hosted runners differ?
BeginnerConceptGitHub Actions
Answer
A runner is the machine that executes a job. GitHub-hosted runners (ubuntu-latest, ubuntu-24.04, windows-latest, macos-latest, plus larger and ARM sizes) are fresh VMs per job, maintained by GitHub, billed by minute for private repos. Self-hosted runners are your machines (VMs, bare metal, Kubernetes pods) with custom hardware and network access to private systems, but you maintain, patch and secure them.
runs-on: [self-hosted, linux, x64, gpu]
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?IntermediateWhat are reusable workflows and how do you call one?Intermediate