GitHub-hosted runners are the easy default for GitHub Actions: you write a workflow, GitHub provides the machine, and the job runs on a clean environment every time. But there comes a point where the default is not enough. Your builds need a GPU, or a licensed tool that only exists on your network, or a machine with far more memory than the hosted options offer, or simply a machine you already pay for that sits idle overnight. That is when you run your own runner.
A self-hosted runner is a machine you deploy and manage that executes jobs from GitHub Actions. It can be physical, virtual, in a container, on-premises or in a cloud — the shape does not matter, the contract does: the runner application connects to GitHub, receives job assignments, runs them, and reports the results back.…