Sitelet https://github.com/leafo/gh-actions-lua/pull/23
Skip to content

Windows support - #23

Merged
leafo merged 7 commits into
leafo:masterfrom
luarocks:master
Jul 28, 2022
Merged

leafo merged 7 commits into
leafo:masterfrom
luarocks:master

Conversation

@hishamhm

Copy link
Copy Markdown
Contributor

This expands on the work by @chipsenkbeil by adding support for PUC-Rio Lua on Windows, by launching the compiler ourselves, since the provided Makefile is pretty much Unix-only. The logic here is based on similar Python code implemented by hererocks.

The PUC-Rio Lua build is done using MSVC, while the LuaJIT build by @chipsenkbeil uses Mingw. I haven't tried building using the upstream Lua compiler with Mingw — I've personally only used it for cross-compiling from a Unix host, not sure how well that works from Windows, and I thought it would be useful to provide a MSVC-based option. To use MSVC, one needs to enable the compiler that's included in Actions's windows-latest container. Hererocks jumps through several hoops to do that, but here it was a matter of loading another Action, illamy/msvc-dev-cmd.

Additional commits:

  • make sure that lua51.dll is installed in the bin dir when deploying LuaJIT (the visible difference is that the "Test Lua" step now correctly displays hi from lua on all jobs; LuaJIT did compile on (windows support) Update to use posix path #19 and that job passed, but the output didn't show before).
  • bump Lua 5.4 to 5.4.4
  • .editorconfig file for convenience

Closes #19.
Closes #6.

@leafo
leafo merged commit d72f318 into leafo:master Jul 28, 2022
@leafo

leafo commented Jul 28, 2022

Copy link
Copy Markdown
Owner

Looks good, thanks for the contribution

telemachus added a commit to telemachus/split that referenced this pull request Jan 21, 2023
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.

Can't install Lua 5.1+ on windows

4 participants