Skip to content

ci: inherit Windows PATH in MSYS2 shell for Wails GUI build#209

Merged
javi11 merged 2 commits intomainfrom
claude/gallant-liskov-dc8076
Apr 25, 2026
Merged

ci: inherit Windows PATH in MSYS2 shell for Wails GUI build#209
javi11 merged 2 commits intomainfrom
claude/gallant-liskov-dc8076

Conversation

@javi11
Copy link
Copy Markdown
Owner

@javi11 javi11 commented Apr 25, 2026

Summary

Follow-up to #208. The Wails GUI build now runs under shell: msys2 {0}, but that shell starts with a clean MSYS2-only PATH by default. Result: wails (installed via go install into the Windows GOPATH) and go itself aren't on PATH, so the step fails with wails: command not found.

Setting path-type: inherit on setup-msys2 preserves the Windows PATH inside the msys2 shell, making go and wails visible while still keeping the MINGW64 gcc precedence we need for static linking.

Changes

  • dev-build.yml build-gui-windows: add path-type: inherit to setup-msys2.
  • release.yml Windows GUI build: same.

Test plan

  • build-gui-windows job in dev-build runs wails build successfully.
  • verify-windows-gui-dlls still passes (no libstdc++-6.dll / libwinpthread-1.dll).

javi11 added 2 commits April 25, 2026 16:08
Without -linkmode external, Go silently ignored -extldflags=-static, so
the Wails GUI exe still imported libstdc++-6.dll and libwinpthread-1.dll
and failed verify-windows-gui-dlls. The trailing -Wl,-Bdynamic in
CGO_LDFLAGS also reverted later libs to dynamic linking. Run the build
under msys2 {0} so the MINGW64 gcc is unambiguously on PATH, mirroring
the working CLI build.
The msys2 {0} shell uses a clean PATH by default, so wails (installed
via go install into the Windows GOPATH/bin) and go itself were not
visible, breaking the build with 'wails: command not found'. Set
path-type: inherit on setup-msys2 so the Windows PATH is preserved.
@javi11 javi11 merged commit 5f7f944 into main Apr 25, 2026
3 checks passed
@javi11 javi11 deleted the claude/gallant-liskov-dc8076 branch April 25, 2026 14:31
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