Turn a Windows 11 + WSL workstation into self-hosted runners for every repo. Same workflows, same releases — routed with one repository variable, without the monthly hosted-minute cap.
On private repositories, GitHub-hosted minutes come out of a monthly quota, and Windows and macOS minutes cost more than Linux ones. When the quota runs out, CI, CD and releases stop. Self-hosted runners are free — the hard part is running many of them, reliably, on a machine you also use every day.
for repos routed to your machine; flip one variable to fall back to GitHub.
forge.json lists repos and how many Windows/Linux runners each gets.
native Windows + Linux in WSL, each with its own Python, TEMP and safe Maven cache.
sync-runners.ps1Runner count control per repo: adds the missing, removes idle extras. Binaries checked by SHA-256.
per-runner Pythonpython-build-standalone in each runner's tool cache — parallel setup-python jobs, tkinter included.
Dev DriveRunners on a ReFS Dev Drive with Defender performance mode, behind a junction — no path changes.
route_workflows.pyRewrites runs-on for routing and skips cache restores on persistent runners.
dashboard + metricsProjects, runners, queue time, failures and estimated billable minutes saved.
alertsWindows notifications for offline runners, stuck queues and failures on the default branch.
job hooksOne JSON line per job and a clean TEMP before every job.
WSL hardeningOfficial Maven, apt lock queue, Maven file lock, a single wsl.exe holder.
git clone https://github.com/AllanSantos-DV/local-ci-forge cd local-ci-forge Copy-Item config\forge.example.json forge.json # owner, repos, runner counts .\install.ps1
python tools\route_workflows.py C:\path\to\my-app # review the diff, open a PR gh variable set CI_RUNNER -b local -R you/my-app
python tools\dashboard.py --open — see the sample dashboard.