Port repo automation prep to miami: Linux CI workflow + branch-specific AGENTS.md #3

Closed
opened 2026-11-29 00:14:04 +00:00 by opencode · 2 comments
Owner

Context

Once the miami branch exists on the remote (see issue #1 "Push miami (reVC) and lcs (reLCS) branches to the Gitea remote"), the repo-prep done on master must be mirrored:

  1. .gitea/workflows/linux.yml — same Linux GL3+OpenAL build workflow as on master. Gitea Actions only triggers workflows that are committed on the pushed branch, so miami needs its own copy of the file.
  2. AGENTS.md — adapted for reVC: same structure as master's, with miami-specific notes where the codebase differs (reVC sources, reVC.ini, Vice City data layout, any divergent options in its CMakeLists/premake).

Acceptance

  • Both files exist on miami.
  • A push or workflow_dispatch on miami produces a CI run (green, or red with documented diagnostics).
  • AGENTS.md on miami is accurate for that branch (verified build commands, correct subsystem notes).

Notes

  • Work happens in the local clone (git worktree or a local miami branch from origin/miami); commits are mirrored to the remote via the Gitea MCP file-write API.
  • Do not modify vendor/ submodule pins.
## Context Once the `miami` branch exists on the remote (see issue #1 "Push `miami` (reVC) and `lcs` (reLCS) branches to the Gitea remote"), the repo-prep done on `master` must be mirrored: 1. **`.gitea/workflows/linux.yml`** — same Linux GL3+OpenAL build workflow as on master. Gitea Actions only triggers workflows that are committed **on the pushed branch**, so miami needs its own copy of the file. 2. **`AGENTS.md`** — adapted for reVC: same structure as master's, with miami-specific notes where the codebase differs (reVC sources, `reVC.ini`, Vice City data layout, any divergent options in its CMakeLists/premake). ## Acceptance - Both files exist on `miami`. - A push or `workflow_dispatch` on `miami` produces a CI run (green, or red with documented diagnostics). - `AGENTS.md` on miami is accurate for that branch (verified build commands, correct subsystem notes). ## Notes - Work happens in the local clone (`git worktree` or a local `miami` branch from `origin/miami`); commits are mirrored to the remote via the Gitea MCP file-write API. - Do not modify `vendor/` submodule pins.
opencode added this to the M1: Repo & CI modernization milestone 2026-11-29 00:14:04 +00:00
opencode added the cidocumentation labels 2026-11-29 00:14:04 +00:00
Author
Owner

Verified miami build baseline (GCC 13.3, RelWithDebInfo, a16fcd8d) — use these facts when porting:

  • Branch-specific option prefix is REVC_ (not RE3_): REVC_AUDIO, REVC_VENDORED_LIBRW, REVC_WITH_OPUS, REVC_WITH_LIBSNDFILE, REVC_WITH_SANITIZERS/REVC_WITH_ASAN. LIBRW_PLATFORM / LIBRW_GL3_GFXLIB are unchanged. There is no option(REVC_INSTALL …) declared on miami.
  • Executable name is reVC (not re3) — the CI smoke-check find -name re3 and the artifact name must be adapted.
  • Verified configure:
    cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \
      -DREVC_AUDIO=OAL -DREVC_VENDORED_LIBRW=True \
      -DLIBRW_PLATFORM=GL3 -DLIBRW_GL3_GFXLIB=GLFW
    
  • Result: 0 errors, 310/310 targets, ~30.6 MiB reVC binary, 21 s on 12 cores. All 4 submodules clone fine from github. Warnings baseline 13,281 (vs 10,878 master), incl. a new -Wswitch cluster (410, PedAI/PedFight/ProjectileInfo).
  • Standing local infra for this work: worktree /var/home/jchroback/Projects/re3-miami (detached @ a16fcd8d) + container re3dev-miami (image localhost/re3dev:deps), source mounted read-only at /src, build dir /build inside. Configure log: /tmp/opencode/re3-miami-configure.log, build log: /tmp/opencode/re3-miami-build.log.
  • Note: the miami CMake prints Building reVC GIT SHA1: empty when building from the worktree inside the container (the worktree's .git pointer is outside the read-only mount). Harmless, but the CI checkout (a real clone) will not have this quirk.
**Verified miami build baseline (GCC 13.3, RelWithDebInfo, `a16fcd8d`) — use these facts when porting:** - Branch-specific option prefix is **`REVC_`** (not `RE3_`): `REVC_AUDIO`, `REVC_VENDORED_LIBRW`, `REVC_WITH_OPUS`, `REVC_WITH_LIBSNDFILE`, `REVC_WITH_SANITIZERS`/`REVC_WITH_ASAN`. `LIBRW_PLATFORM` / `LIBRW_GL3_GFXLIB` are unchanged. There is no `option(REVC_INSTALL …)` declared on miami. - Executable name is **`reVC`** (not `re3`) — the CI smoke-check `find -name re3` and the artifact name must be adapted. - Verified configure: ``` cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DREVC_AUDIO=OAL -DREVC_VENDORED_LIBRW=True \ -DLIBRW_PLATFORM=GL3 -DLIBRW_GL3_GFXLIB=GLFW ``` - Result: **0 errors, 310/310 targets, ~30.6 MiB `reVC` binary, 21 s** on 12 cores. All 4 submodules clone fine from github. Warnings baseline 13,281 (vs 10,878 master), incl. a new `-Wswitch` cluster (410, PedAI/PedFight/ProjectileInfo). - Standing local infra for this work: worktree `/var/home/jchroback/Projects/re3-miami` (detached @ a16fcd8d) + container `re3dev-miami` (image `localhost/re3dev:deps`), source mounted read-only at `/src`, build dir `/build` inside. Configure log: `/tmp/opencode/re3-miami-configure.log`, build log: `/tmp/opencode/re3-miami-build.log`. - Note: the miami CMake prints `Building reVC GIT SHA1:` **empty** when building from the worktree inside the container (the worktree's `.git` pointer is outside the read-only mount). Harmless, but the CI checkout (a real clone) will not have this quirk.
Author
Owner

Completed — 2026-11-29. The repo-prep port to miami is published on the remote branch:

  1. .gitea/workflows/linux.yml — reVC-adapted: REVC_AUDIO/REVC_VENDORED_LIBRW flags, reVC target + smoke check, reVC-linux-x64-gl3-oal artifact, push trigger scoped to miami, runner-compatible (no sudo, file installed, no -Werror). Independently reviewed: ship (all flags verified against miami's CMakeLists; no option(REVC_INSTALL) exists, the workflow does not pass it).
  2. AGENTS.md — 520-line reVC adaptation of master's manual: verified build gate for the standing re3dev-miami container (310 targets, ~30.6 MiB reVC binary, ~20 s), reVC identity/frame-flow facts checked against the miami tree (GTA_VC.DAT literal, Script2–8.cpp, set pieces/ropes, miami CGame::Process order, miami backslash-literal line numbers, reVC.ini + userfiles/), shared-tracker workflow notes. Reviewer's 3 findings (m_bRenderGameInMenu attribution, CRopes location, REVC_INSTALL wording) were fixed and republished.
  3. .gitignore — AGENTS.local.md entry on miami.
  4. Master's AGENTS.md §1 branch-state paragraph updated to reflect all three branches being on the remote.

CI run dispatched on miami: created and queued — execution awaits a registered runner (issue #22, deliberately deferred by the maintainer; local container builds remain the authoritative gate per AGENTS.md §8).

Caveat for future agents: the remote miami history carries the API-mirrored commits (SHA differs from the local worktree's commits; content is reviewer-verified identical). Any new miami task starts with git fetch origin && git reset --hard origin/miami in the worktree.

**Completed — 2026-11-29.** The repo-prep port to `miami` is published on the remote branch: 1. **`.gitea/workflows/linux.yml`** — reVC-adapted: `REVC_AUDIO`/`REVC_VENDORED_LIBRW` flags, `reVC` target + smoke check, `reVC-linux-x64-gl3-oal` artifact, push trigger scoped to `miami`, runner-compatible (no sudo, `file` installed, no `-Werror`). Independently reviewed: **ship** (all flags verified against miami's CMakeLists; no `option(REVC_INSTALL)` exists, the workflow does not pass it). 2. **`AGENTS.md`** — 520-line reVC adaptation of master's manual: verified build gate for the standing `re3dev-miami` container (310 targets, ~30.6 MiB `reVC` binary, ~20 s), reVC identity/frame-flow facts checked against the miami tree (`GTA_VC.DAT` literal, `Script2–8.cpp`, set pieces/ropes, miami `CGame::Process` order, miami backslash-literal line numbers, `reVC.ini` + `userfiles/`), shared-tracker workflow notes. Reviewer's 3 findings (`m_bRenderGameInMenu` attribution, `CRopes` location, `REVC_INSTALL` wording) were fixed and republished. 3. **`.gitignore`** — `AGENTS.local.md` entry on miami. 4. Master's `AGENTS.md` §1 branch-state paragraph updated to reflect all three branches being on the remote. CI run dispatched on `miami`: created and **queued** — execution awaits a registered runner (issue #22, deliberately deferred by the maintainer; local container builds remain the authoritative gate per AGENTS.md §8). Caveat for future agents: the remote miami history carries the API-mirrored commits (SHA differs from the local worktree's commits; content is reviewer-verified identical). Any new miami task starts with `git fetch origin && git reset --hard origin/miami` in the worktree.
Sign in to join this conversation.