ci(windows): fix runner registration CWD + capture clean daemon logs
apple / swift (push) Successful in 53s
android / android (push) Has been cancelled
ci / rust (push) Has been cancelled
ci / web (push) Has been cancelled
ci / docs-site (push) Has been cancelled
ci / bench (push) Has been cancelled
deb / build-publish (push) Has been cancelled
decky / build-publish (push) Has been cancelled
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Has been cancelled
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Has been cancelled
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Has been cancelled
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Has been cancelled
docker / deploy-docs (push) Has been cancelled
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Has been cancelled
rpm / build-publish (fedora-44, punktfunk-fedora44-rpm) (push) Has been cancelled
rpm / build-publish (bazzite, punktfunk-fedora-rpm) (push) Has been cancelled
apple / swift (push) Successful in 53s
android / android (push) Has been cancelled
ci / rust (push) Has been cancelled
ci / web (push) Has been cancelled
ci / docs-site (push) Has been cancelled
ci / bench (push) Has been cancelled
deb / build-publish (push) Has been cancelled
decky / build-publish (push) Has been cancelled
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Has been cancelled
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Has been cancelled
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Has been cancelled
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Has been cancelled
docker / deploy-docs (push) Has been cancelled
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Has been cancelled
rpm / build-publish (fedora-44, punktfunk-fedora44-rpm) (push) Has been cancelled
rpm / build-publish (bazzite, punktfunk-fedora-rpm) (push) Has been cancelled
Two fixes after live setup on home-windows-1: register from $RunnerHome (act_runner writes .runner relative to CWD, so it must run there — it had landed in the SSH home and the daemon couldn't find it), and run the daemon under cmd-level redirect (>> runner.log 2>&1) so its native stderr stays out of PowerShell's error stream. Runner is live: windows-amd64:host, SYSTEM scheduled task, "declare successfully" against git.unom.io. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -61,14 +61,16 @@ if (-not (Test-Path config.yaml)) { & $Exe generate-config | Set-Content -Encodi
|
|||||||
Set-Content -Encoding ASCII config.yaml
|
Set-Content -Encoding ASCII config.yaml
|
||||||
Pop-Location
|
Pop-Location
|
||||||
|
|
||||||
# --- one-time registration ---
|
# --- one-time registration (from $RunnerHome: register writes .runner to the CWD) ---
|
||||||
if (-not (Test-Path "$RunnerHome\.runner")) {
|
if (-not (Test-Path "$RunnerHome\.runner")) {
|
||||||
if (-not $Token) {
|
if (-not $Token) {
|
||||||
Write-Warning "Not registered yet. Re-run with -Token <registration token>."
|
Write-Warning "Not registered yet. Re-run with -Token <registration token>."
|
||||||
Write-Host " (Gitea: org unom -> Settings -> Actions -> Runners -> Create new runner)"
|
Write-Host " (Gitea: org unom -> Settings -> Actions -> Runners -> Create new runner)"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
Push-Location $RunnerHome
|
||||||
& $Exe register --no-interactive --instance $Instance --token $Token --name $RunnerName --labels $Labels
|
& $Exe register --no-interactive --instance $Instance --token $Token --name $RunnerName --labels $Labels
|
||||||
|
Pop-Location
|
||||||
}
|
}
|
||||||
|
|
||||||
# rustup toolchains under an ASCII path so nothing in the daemon env carries the non-ASCII
|
# rustup toolchains under an ASCII path so nothing in the daemon env carries the non-ASCII
|
||||||
@@ -88,7 +90,8 @@ $env:LIBCLANG_PATH = "C:\Program Files\LLVM\bin"
|
|||||||
$env:FFMPEG_DIR = "C:\Users\Public\ffmpeg"
|
$env:FFMPEG_DIR = "C:\Users\Public\ffmpeg"
|
||||||
$env:PATH = "C:\Users\Public\.cargo\bin;C:\nvm4w\nodejs;C:\Program Files\NASM;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\Public\ffmpeg\bin;" + $env:PATH
|
$env:PATH = "C:\Users\Public\.cargo\bin;C:\nvm4w\nodejs;C:\Program Files\NASM;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\Public\ffmpeg\bin;" + $env:PATH
|
||||||
Set-Location "C:\Users\Public\act-runner"
|
Set-Location "C:\Users\Public\act-runner"
|
||||||
& "C:\Users\Public\act-runner\act_runner.exe" daemon --config config.yaml
|
# cmd-level redirect (>>, 2>&1) keeps the daemon's native stderr out of PowerShell's error stream.
|
||||||
|
& cmd /c "act_runner.exe daemon --config config.yaml >> runner.log 2>&1"
|
||||||
'@ | Set-Content -Encoding UTF8 $wrapper
|
'@ | Set-Content -Encoding UTF8 $wrapper
|
||||||
|
|
||||||
# --- SYSTEM scheduled task: keep the daemon alive across reboots, no login needed ---
|
# --- SYSTEM scheduled task: keep the daemon alive across reboots, no login needed ---
|
||||||
|
|||||||
Reference in New Issue
Block a user