Skip to content

Instantly share code, notes, and snippets.

@hardyscc
Last active June 16, 2026 12:51
Show Gist options
  • Select an option

  • Save hardyscc/f68dcc8bc52647d7514413187d525405 to your computer and use it in GitHub Desktop.

Select an option

Save hardyscc/f68dcc8bc52647d7514413187d525405 to your computer and use it in GitHub Desktop.
Github Actions Runner on WSL

Github Actions Runner on WSL

Disable auto proxy

create file %USERPROFILE/.wlsconfig

[wsl2]
autoProxy=false

Setup WSL

# Check what's alive
wsl -l -v

# Create instance
wsl --install --name Actions-Runner

# Stop instance
wsl -t Actions-Runner

# Destory instance
wsl --unregister Actions-Runner

Setup Proxy

cat << EOF | sudo tee -a /etc/apt/apt.conf.d/30proxy.conf
Acquire::http::Proxy "http://xxx:xxxc@proxy.domain:8080/";
EOF

Upgrade System

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl tar libicu-dev build-essential

# Install additional libs if needed
sudo apt install jq

Install Custom Certs

sudo cp *.crt /usr/local/share/ca-certificates/.
sudo update-ca-certificates

Install Github Actions Runner

# Goto Home Directory first
cd ~

<Follow Github Runner Instructions: New `Linux X86` Runner>

Install as service (Optional)

# install & start
sudo ./svc.sh install
sudo ./svc.sh start

# check status
sudo ./svc.sh status

# uninstall
sudo ./svc.sh uninstall

# check logs
journalctl -u actions.runner.* -f

# use systemctl
sudo systemctl start actions.runner.*
sudo systemctl stop actions.runner.*
sudo systemctl status actions.runner.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment