CI: game-bearing C# build/load gate for the STS2 bridge mod #18
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens-mcp#18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
There is no CI gate that actually compiles the C# mod.
SpireLensMcpBridge.csprojHintPath-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 cannotdotnet buildthe mod. (There are also no NuGetPackageReferences, sodotnet restoreis 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)
MegaCrit.Sts2.*types + Godot/Harmony entry points itusings) and point a CI-onlySTS2GameDataDirat 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.romaine-life/spirelensinfra (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).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.