Steps to setup self-hosted GitHub runner
With self-hosted runners, you can create custom hardware configurations that meet your needs with processing power or memory to run larger jobs, install software available on your local network, and choose an operating system not offered by GitHub-hosted runners. — GitHub
References
-
Go to your repository in GitHub.
-
In Settings > Actions > Runners, click on New self-hosted runner button.
-
Choose Runner Image and Architecture. Do take note that, the architecture is based on your device specifications. For my case is x64.
-
Download the necessary files. You can find all these commands on the same page where you select Runner Image and Architecture.
Windows Runner
Linux Runner
Here is the output after executing all these commands.
-
Configure and start the runner.
Windows Runner
Linux Runner
Programmatically assign labels to a self-hosted runner is optional. Here is the sample configuration of the runner.
Verify your runner being setup.
-
Using your self-hosted runner. Create a new file under
.github/workflows/test.yaml
.Here is the output after all the CI jobs are completed.
-
Optional: You can configure the self-hosted runner application as a service
Written by
KarChunT
At
Fri Mar 28 2025