From cb02959925389c6e51bcb02624f95d079f040205 Mon Sep 17 00:00:00 2001 From: wtclaude Date: Tue, 6 Oct 2026 21:53:58 -0500 Subject: [PATCH] chore(spike): what the CI runner can reach (stage 9c, never merged) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY --- .gitea/workflows/spike-9c.yml | 55 +++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .gitea/workflows/spike-9c.yml diff --git a/.gitea/workflows/spike-9c.yml b/.gitea/workflows/spike-9c.yml new file mode 100644 index 0000000..77bcbf5 --- /dev/null +++ b/.gitea/workflows/spike-9c.yml @@ -0,0 +1,55 @@ +# Throwaway (stage 9c spike): what the runner can reach. Never merged. +name: Spike 9c + +on: + push: + branches: [spike/stage-9c] + +jobs: + reach: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: The runner + run: | + uname -a; cat /etc/os-release | head -3; id + for t in curl git node unzip python3 jq dotnet; do printf '%s: ' $t; command -v $t || echo missing; done + ip -4 addr 2>/dev/null | grep inet || hostname -I || true + cat /etc/resolv.conf + + - name: Base tools + run: | + command -v curl && command -v unzip && exit 0 + apt-get update -qq && apt-get install -y -qq curl unzip ca-certificates >/dev/null && echo installed + + - name: The panel (expect 401 without a key) + run: | + curl -s -o /dev/null -w 'panel http %{http_code} in %{time_total}s\n' --max-time 20 http://192.168.0.12/api/client || echo "panel: unreachable ($?)" + curl -s -o /dev/null -w 'wings 8080 http %{http_code}\n' --max-time 20 http://192.168.0.12:8080/api/system || echo "wings: unreachable ($?)" + + - name: The outside + run: | + for u in https://api.steamcmd.net/v1/info/258550 \ + https://downloads.oxidemod.com/artifacts/Oxide.Rust/staging/Oxide.Rust-linux.zip \ + https://github.com/SteamRE/DepotDownloader/releases/download/DepotDownloader_3.4.0/DepotDownloader-linux-x64.zip \ + https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh \ + https://dot.net/v1/dotnet-install.sh \ + https://api.nuget.org/v3/index.json \ + https://gitea.whitlocktech.com/api/v1/version; do + curl -sL -o /dev/null -w "%{http_code} %{size_download}B %{time_total}s $u\n" --max-time 60 -r 0-2000 "$u" || echo "FAIL ($?) $u" + done + + - name: Steam depot download (staging Managed) + run: | + curl -sSL -o dd.zip https://github.com/SteamRE/DepotDownloader/releases/download/DepotDownloader_3.4.0/DepotDownloader-linux-x64.zip + unzip -oq dd.zip -d dd && chmod +x dd/DepotDownloader + printf 'regex:^RustDedicated_Data/Managed/[^/]+\\.dll$\n' > files.txt + time ./dd/DepotDownloader -app 258550 -depot 258552 -branch staging -filelist files.txt -dir staging -os linux 2>&1 | tail -4 + ls staging/RustDedicated_Data/Managed | wc -l + + - name: dotnet SDK + run: | + curl -sSL -o dotnet-install.sh https://builds.dotnet.microsoft.com/dotnet/scripts/v1/dotnet-install.sh || curl -sSL -o dotnet-install.sh https://dot.net/v1/dotnet-install.sh + time bash dotnet-install.sh --channel 9.0 --install-dir "$HOME/.dotnet" 2>&1 | tail -3 + "$HOME/.dotnet/dotnet" --list-sdks + ls "$HOME"/.dotnet/sdk/*/Roslyn/bincore/csc.dll