gh-actions-lua
gh-actions-lua copied to clipboard
Fix C module loading on windows
This PR addresses #39 and introduces 2 changes to the windows plain lua build:
- Installs
luaxx.dllnext tolua.exe(bin/) where it can be picked up at runtime by native libraries linked against it - Links
lua.exeagainstluaxx.dllto avoid "multiple lua VMs" errors
@leafo I've tested this in the CI runs for luasystem at https://github.com/lunarmodules/luasystem/pull/17 and I confirm this works! Without this patch, the resulting binary can only run pure Lua code (which meant LuaRocks ran fine, but then the C-based packages built by it wouldn't load in the interpreter).