final ahh fix
release / build (push) Failing after 48s

This commit is contained in:
lda
2026-04-14 08:21:10 +07:00 Unverified
parent a1a401ff57
commit 86ec45cb3a
3 changed files with 42 additions and 9 deletions
+2 -1
View File
@@ -83,7 +83,8 @@ jobs:
- name: Publish Release to Gitea
if: startsWith(github.ref, 'refs/tags/')
uses: actions/gitea-release-action@v1
# use their personal repo cuz this searches github.com T_T
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.GITEA_TOKEN }}
files: |
+22 -3
View File
@@ -11,6 +11,14 @@ SERVER_URL="${SERVER_URL:-}"
TOKEN="${TOKEN:-}"
LABELS="${LABELS:-self-hosted,linux,fedora,wsl,release:host}"
normalize_paths() {
local config_dir config_file
config_dir="$(cd "$(dirname "$CONFIG_PATH")" && pwd)"
config_file="$(basename "$CONFIG_PATH")"
CONFIG_PATH="$config_dir/$config_file"
RUNNER_HOME="$config_dir"
}
usage() {
cat <<'EOF'
Usage:
@@ -92,6 +100,7 @@ register_runner() {
start_runner() {
local mode="${1:-daemon}"
local config_dir config_file
ensure_dirs
ensure_runner_bin
@@ -100,15 +109,23 @@ start_runner() {
exit 2
fi
config_dir="$(dirname "$CONFIG_PATH")"
config_file="$(basename "$CONFIG_PATH")"
case "$mode" in
attach)
exec "$RUNNER_BIN" daemon --config "$CONFIG_PATH"
cd "$config_dir"
exec "$RUNNER_BIN" daemon --config "$config_file"
;;
once)
exec "$RUNNER_BIN" daemon --config "$CONFIG_PATH" --once
cd "$config_dir"
exec "$RUNNER_BIN" daemon --config "$config_file" --once
;;
daemon)
nohup "$RUNNER_BIN" daemon --config "$CONFIG_PATH" >/tmp/act_runner.log 2>&1 &
(
cd "$config_dir"
nohup "$RUNNER_BIN" daemon --config "$config_file" >/tmp/act_runner.log 2>&1 &
)
echo "Started act_runner in background"
;;
*)
@@ -189,6 +206,8 @@ while [[ $# -gt 0 ]]; do
esac
done
normalize_paths
case "$ACTION" in
update)
update_runner
+18 -5
View File
@@ -18,6 +18,7 @@ param(
)
$ErrorActionPreference = 'Stop'
. "$PSScriptRoot/lib.ps1"
# If no version provided, deduce from Cargo.toml
$versionProvided = [bool]$Version
@@ -90,13 +91,25 @@ if ($Tag -and $Version) {
switch ($RunnerMode) {
'wsl' {
$runnerScript = Join-Path $PSScriptRoot 'act_runner_wsl.ps1'
if (Test-Path $runnerScript) {
Write-Host "Starting Fedora/WSL act_runner (once mode) to process release job..."
& $runnerScript -Distro $WslDistro -Action start -Once
if ($IsWindows) {
$runnerScript = Join-Path $PSScriptRoot 'act_runner_wsl.ps1'
if (Test-Path $runnerScript) {
Write-Host "Starting Fedora/WSL act_runner via Windows wrapper (once mode)..."
& $runnerScript -Distro $WslDistro -Action start -Once
}
else {
Write-Warning "act_runner_wsl.ps1 not found at $runnerScript. Skipping runner."
}
}
else {
Write-Warning "act_runner_wsl.ps1 not found at $runnerScript. Skipping runner."
$runnerScript = Join-Path $PSScriptRoot 'act_runner_fedora.sh'
if (Test-Path $runnerScript) {
Write-Host "Starting Fedora runner directly (once mode)..."
& bash $runnerScript start --once
}
else {
Write-Warning "act_runner_fedora.sh not found at $runnerScript. Skipping runner."
}
}
}
'windows' {