Skip to content

CI: move to setup-nim-action@v6 (Nimby 0.2.0) - #99

Merged
treeform merged 2 commits into
masterfrom
ci/nimby-v6-workspace
Aug 23, 2026
Merged

CI: move to setup-nim-action@v6 (Nimby 0.2.0)#99
treeform merged 2 commits into
masterfrom
ci/nimby-v6-workspace

Conversation

@treeform

Copy link
Copy Markdown
Owner

Moves CI to treeform/setup-nim-action@v6, which ships Nim 2.2.10 with Nimby 0.2.0 bundled.

This is not just a tag bump — Nimby 0.2.0 made workspaces explicit, which breaks the old commands.

The silent failure

nimby sync -g nimby.lock still exits 0 under 0.2.0, but writes no nim.cfg anywhere. Packages land in ~/.nimby/pkgs invisible to the compiler, and the build fails later with a misleading Error: cannot open file: bitty. Verified against the real v6 toolchain.

So -g is dropped in favour of a real workspace created in the checkout's parent — that placement is load-bearing: a workspace under RUNNER_TEMP installs the packages but the build won't see them.

docs.yml

Migrated off jiro4989/setup-nim-action@v1 + nimble onto the same Nimby workspace and nim doc, so both workflows use one toolchain. Dropped the unused nim-version: 'stable' env (v6 requires an exact version and this was never passed to the action).

Verification

Every run: step was parsed from these YAML files and executed against the bit-identical v6 artifact (SHA-256 matched the release asset), in a sandbox with USERPROFILE redirected:

  • build.yml — workspace + sync + all 19 native example compiles pass
  • emscripten path built to completion (heart.nim → real .wasm/.js/.html/.data)
  • docs.yml — full run, produces the expected .gh-pages tree with index.html

Local runs were Windows-only; this PR's CI covers ubuntu/macOS.

🤖 Generated with Claude Code

treeform and others added 2 commits August 23, 2026 14:52
Nimby 0.2.0 makes workspaces explicit and refuses to create one inside a
Git checkout, so installing in the checkout root no longer works. Create
the workspace in the checkout's parent instead, so boxy sits inside it
next to its dependencies and nim finds nim.cfg by walking up.

Also drop -g. Under 0.2.0 a global install writes no nim.cfg at all, so
packages land on disk but stay invisible to the compiler: the install
step goes green and the build then fails with "cannot open file".

docs.yml moves off jiro4989/setup-nim-action + nimble onto the same
Nimby workspace and nim doc, matching build.yml.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Modern emsdk ships emcc.exe on Windows and no longer provides emcc.bat,
so the hardcoded emcc.bat broke the Windows emscripten builds:

  Error: invocation of external compiler program failed.
  Requested command not found: 'emcc.bat -c -w ...'

setup-emsdk@v14 installs the latest emsdk, so this landed on its own as
emsdk drifted forward; it is unrelated to the Nimby v6 move.

CreateProcess appends .exe when the name has no extension, so the bare
emcc used by the non-Windows branch already resolves correctly on
Windows. Both branches are now identical, so the split is gone.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@treeform
treeform merged commit a7b5241 into master Aug 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant