https://github.com/marketplace?type=actions
https://docs.github.com/en/actions
Go to your GitHub repository where you want to use the self-hosted runner.
-
Click "New self-hosted runner"
-
Choose:
- OS:
Linux - Architecture:
x64(most common) - You can also run commanduname -mto identify your machine architecture
- OS:
-
GitHub will display a set of terminal commands to install and configure the runner. You'll follow those next.
mkdir actions-runner && cd actions-runner# Replace with the latest version from GitHub instructions
curl -o actions-runner-linux-x64-2.316.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.316.0/actions-runner-linux-x64-2.316.0.tar.gztar xzf actions-runner-linux-x64-2.316.0.tar.gzGitHub will provide you a token and repo URL — copy from their UI and run something like:
./config.sh --url https://github.com/<your-org-or-username>/<your-repo> --token <TOKEN>You’ll be asked to:
- Choose a runner group - Press Enter to keep it default
- Name the runner - Press Enter to keep it default
- Working Folder - /home/labuser/runner
./run.shThis will keep the runner active in your terminal.
After configuration, GitHub will suggest installing the runner as a service:
sudo ./svc.sh install
sudo ./svc.sh startThis ensures the runner:
- Runs in the background
- Restarts after reboot