install_notes/windows10/gitea_runner.md

28 lines
1.2 KiB
Markdown

# Gitea Runner on Windows 10
## Setup
1. Download `.exe` from https://gitea.com/gitea/act_runner/releases
2. Register runner
3. Move `.exe` and `.runner` to `C:\Program Files\gitea\`
4. Add `C:\Program Files\gitea\runner.bat`
```bat
cd "C:\Program Files\gitea"
act_runner-0.2.6-windows-amd64.exe daemon
```
5. Add startup task with task scheduler.
Program: `C:\Windows\System32\cmd.exe`
Arguments: `/k "C:\Program Files\gitea\runner.bat"`
- Disable auto-stop after 3 days
- Run whether user is logged in or not
6. From admin powershell change the execution policy
`Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine`
7. Download `nvm-setup.exe` from https://github.com/coreybutler/nvm-windows/releases and install
- Verify installation with `nvm ls` which should say `No installations recognized.`
8. `nvm list available` to determine the latest LTS version
9. Install the latest LTS version `nvm install 20.11.1` (replace version)
10. `nvm use 20.11.1` to select what was just installed
11. Download and install git (64b) from https://git-scm.com/download/win (default settings are fine)
## Updating
Just download a new `.exe` and update the path in `runner.bat`