clean up bootstrapping stuff from CI, update README
All checks were successful
CI / lint (push) Successful in 16s
CI / fuzz (push) Successful in 1m39s
CI / test (push) Successful in 20s

This commit is contained in:
Kamal Tufekcic 2026-07-27 11:59:28 +03:00
commit 54ef572202
2 changed files with 41 additions and 28 deletions

View file

@ -23,7 +23,6 @@ jobs:
STEAM_APPS: /home/cs2/.steam/SteamApps
STEAM_USER: source2rosetta
RELEASE_BASE: ${{ github.server_url }}/${{ github.repository }}/releases/download
BOOTSTRAP_DIR: /home/cs2/rosetta-bootstrap
steps:
- uses: actions/checkout@v6.0.2
@ -56,25 +55,10 @@ jobs:
- name: Fetch the previous model + seed (the two non-user-facing release artifacts)
run: |
mkdir -p in dist work
code=$(curl -sSL -o in/model.gz -w '%{http_code}' "$RELEASE_BASE/$GAME-latest/model-$GAME.json.gz" || echo 000)
if [ "$code" = "200" ]; then
gunzip -c in/model.gz > "in/model-$GAME.json"
echo "model: from the $GAME-latest release"
elif [ "$code" = "404" ] && [ -f "${BOOTSTRAP_DIR:-}/model-$GAME.json" ]; then
# First run only. ONLY a genuine 404 falls back: on a transient failure we must NOT quietly
# re-derive from a stale on-disk model and then overwrite `latest` with the result.
cp "${BOOTSTRAP_DIR}/model-$GAME.json" "in/model-$GAME.json"
echo "model: BOOTSTRAP from $BOOTSTRAP_DIR — clear BOOTSTRAP_DIR once this run has published"
else
echo "model fetch failed (HTTP $code) and no bootstrap copy at '${BOOTSTRAP_DIR:-<unset>}/model-$GAME.json' — refusing to derive"
exit 1
fi
if curl -fsSL -o in/seed.gz "$RELEASE_BASE/$GAME-latest/seed-$GAME.json.gz"; then
gunzip -c in/seed.gz > "mappings/seed-$GAME.json"
echo "seed: from the $GAME-latest release"
else
echo "seed: none published yet — using the repo's mappings/seed-$GAME.json"
fi
curl -fsSL -o in/model.gz "$RELEASE_BASE/$GAME-latest/model-$GAME.json.gz"
gunzip -c in/model.gz > "in/model-$GAME.json"
curl -fsSL -o in/seed.gz "$RELEASE_BASE/$GAME-latest/seed-$GAME.json.gz"
gunzip -c in/seed.gz > "in/seed-$GAME.json"
- name: Produce — derive + validate-live + typed netvars + fold model N -> N+1
run: |
@ -84,14 +68,13 @@ jobs:
# would be rejected as not-newer. Buildids are monotonic and sort after the corpus's date labels.
ln -sfn "$GAME_DIR" "work/$BUILDID"
./target/release/source2rosetta --game "$GAME" produce \
--seed "mappings/seed-$GAME.json" \
--seed "in/seed-$GAME.json" \
--corpus-model "in/model-$GAME.json" \
--target "work/$BUILDID" \
--game-dir "$GAME_DIR" \
--version "$GAME-$BUILDID-0" \
--wait 300 \
--out-dir dist
cp "mappings/seed-$GAME.json" "dist/seed-$GAME.json"
cp "in/seed-$GAME.json" "dist/seed-$GAME.json"
- name: Compress the internal artifacts for release
run: |