You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: mcp and serve release tooling is copy-pasted #473
simlin-mcp and simlin-serve ship through near-identical copies of the same release tooling: cross-build scripts, npm platform-package generators, release scripts, and release workflows (about 1,000 lines in total).
A fix to one copy has to be made by hand in the other.
What differs
The two build-npm-packages.sh files differ only in the package name.
scripts/release-mcp.sh and scripts/release-serve.sh differ by about 60 diff lines.
.github/workflows/mcp-release.yml and serve-release.yml differ by about 170 diff lines.
Legitimate differences: serve's image includes Node and pnpm because its build.rs builds the web UI, and serve's cross-build.sh copies the repo into the container with tar instead of mounting it read-only, since the frontend build writes into the workspace.
Fix
Parameterize the parts that differ only by name: one npm-package generator and one release script that take the package name, and one reusable release workflow called by two thin per-package workflows.
Leave the two Dockerfile.cross and cross-build.sh files separate; they differ for real reasons and a shared abstraction over them would cost more than the copy.
changed the title [-]build: factor shared cross-build infrastructure between simlin-mcp and simlin-serve into scripts/lib/[/-][+]build: mcp and serve release tooling is copy-pasted[/+]on Oct 12, 2026
Activity
[-]build: factor shared cross-build infrastructure between simlin-mcp and simlin-serve into scripts/lib/[/-][+]build: mcp and serve release tooling is copy-pasted[/+]