CI: game-bearing C# build/load gate for the STS2 bridge mod #18

Open
opened 2026-06-19 14:36:43 -07:00 by tank-operator-host[bot] · 0 comments
tank-operator-host[bot] commented 2026-06-19 14:36:43 -07:00 (Migrated from github.com)

Problem

There is no CI gate that actually compiles the C# mod. SpireLensMcpBridge.csproj HintPath-links the proprietary STS2 game assemblies — sts2.dll, GodotSharp.dll, 0Harmony.dll — from a local Steam install ($(STS2GameDataDir)/…). Those can't live in the repo, so a stock GitHub-hosted runner cannot dotnet build the mod. (There are also no NuGet PackageReferences, so dotnet restore is a no-op — restore is not a meaningful gate here.)

The cheap, game-independent gates are now in place (see PR adding python-quality.yml + dotnet-format.yml): the Python MCP server is unit-tested, and the C# sources get a whitespace-format tripwire. What's still missing is a real compile/load gate for the mod itself.

Options (cheapest → heaviest)

  1. Reference/stub assemblies. Commit stripped reference assemblies of just the STS2 surface the mod consumes (the MegaCrit.Sts2.* types + Godot/Harmony entry points it usings) and point a CI-only STS2GameDataDir at them. Gives a true compile gate on a stock runner without shipping game IL. Cost: generating + maintaining the refasm set as the surface grows; a redistribution judgment call on reference-only assemblies.
  2. Self-hosted game-bearing runner. Reuse the sibling romaine-life/spirelens infra (ps-quality / glimmung-native / install-latest-spirelens.ps1 / prepare-host.ps1) that already installs the real game on a runner. Heaviest, but it's an existing, proven path and could additionally do a load test (mod actually loads into STS2).
  3. Both: stub-assembly compile gate on PRs (fast, every PR) + occasional game-bearing load test on the self-hosted runner (slow, pre-release).

Recommendation

Start with (1) for a fast per-PR compile gate, since the per-PR signal ("does the mod still compile against the STS2 API") is the most valuable missing check; fold in (2) for a pre-release load test if/when the self-hosted runner is wired for this repo. Until then, the whitespace tripwire + Python tests are the gates.

Context

Follow-up to the spirelens#146 verify-workflow work; raised while adding the first CI to this repo.

## Problem There is no CI gate that actually **compiles** the C# mod. `SpireLensMcpBridge.csproj` `HintPath`-links the proprietary STS2 game assemblies — `sts2.dll`, `GodotSharp.dll`, `0Harmony.dll` — from a local Steam install (`$(STS2GameDataDir)/…`). Those can't live in the repo, so a stock GitHub-hosted runner cannot `dotnet build` the mod. (There are also no NuGet `PackageReference`s, so `dotnet restore` is a no-op — restore is not a meaningful gate here.) The cheap, game-independent gates are now in place (see PR adding `python-quality.yml` + `dotnet-format.yml`): the Python MCP server is unit-tested, and the C# sources get a whitespace-format tripwire. What's still missing is a **real compile/load gate for the mod itself**. ## Options (cheapest → heaviest) 1. **Reference/stub assemblies.** Commit stripped reference assemblies of just the STS2 surface the mod consumes (the `MegaCrit.Sts2.*` types + Godot/Harmony entry points it `using`s) and point a CI-only `STS2GameDataDir` at them. Gives a true compile gate on a stock runner without shipping game IL. Cost: generating + maintaining the refasm set as the surface grows; a redistribution judgment call on reference-only assemblies. 2. **Self-hosted game-bearing runner.** Reuse the sibling `romaine-life/spirelens` infra (`ps-quality` / `glimmung-native` / `install-latest-spirelens.ps1` / `prepare-host.ps1`) that already installs the real game on a runner. Heaviest, but it's an existing, proven path and could additionally do a *load* test (mod actually loads into STS2). 3. **Both:** stub-assembly compile gate on PRs (fast, every PR) + occasional game-bearing load test on the self-hosted runner (slow, pre-release). ## Recommendation Start with **(1)** for a fast per-PR compile gate, since the per-PR signal ("does the mod still compile against the STS2 API") is the most valuable missing check; fold in **(2)** for a pre-release load test if/when the self-hosted runner is wired for this repo. Until then, the whitespace tripwire + Python tests are the gates. ## Context Follow-up to the spirelens#146 verify-workflow work; raised while adding the first CI to this repo.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens-mcp#18
No description provided.