Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move all CI to Actions, overhaul build system, upgrade ancient dependencies #285

Merged
merged 11 commits into from
Jul 4, 2024

Conversation

truemedian
Copy link
Member

This is a large set of changes that accomplishes a few different goals all at the same time.

With these changes, we:

  • luvi now correctly compiles on MinGW
  • update from the unmaintained pcre to pcre2
  • update to openssl 3.1
  • update to latest lua-openssl release
  • update to latest luv release
  • update to latest zlib release
  • update from cmake 2.x to cmake 3.15, and start using newer cmake features and clean up the CMakeLists.txt
  • will provide binaries for more platforms
    • adding support for Darwin arm64, Linux aarch64, and Windows mingw
    • provide both Lua 5.4 and Luajit binaries for all targets
  • switch await from holy-build-box, which has dropped support for 32-bit Linux
    • it is being replaced with the python manylinux project
    • also docker based, but is actively maintained for a much wider range of architectures

Alongside this change, all CI is now handled on Github Actions instead of being split between Actions and appveyor.

The makefile and make.bat have been moved into a single make and nmake compatible makefile. While it makes the makefile slightly more complicated, I felt that the distinction was necessary now that mingw builds are possible and make.bat would always attempt a msvc build.

The cmake Find* modules have all been cleaned up and commented.

All precompiled lua files are now precompiled using luac.lua instead of luajit's object output, it was causing issues on arm64 Darwin and it's much more simple to handle PUC and Luajit the same here.

The luv package has also been added to package.preload as luv in order to be more compatible with what luarocks packages may expect.

This is an amalgamation of many changes:

- remove make.bat, use nmake compatible Makefile instead
- remove appveyor.yml, use exclusively GitHub Actions
- reorganize the cmake build to make use of new features
- configure openssl during the configure step
- make dependencies more consistent
- always use luac.lua to compile lua files
  - this makes a static luvi build more possible
@squeek502
Copy link
Member

Awesome stuff! Probably worth giving the README.md a once-over and updating anything that's outdated.

I've tried disabling Appveyor for PRs so that failure might go away on the next CI run. Will disable Appveyor completely when this is going to be merged.

@truemedian
Copy link
Member Author

Further, this closes #284 and #275 directly with the addition of aarch64 Linux and arm64 macos binaries.

This also supercedes #279, since openssl, lua-openssl, pcre and luv have all been bumped.

Copy link
Member

@squeek502 squeek502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really great work, feel free to merge this whenever you think it's ready. The Appveyor CI should be disabled now.

@zhaozg
Copy link
Member

zhaozg commented Jul 4, 2024

Really great work, feel free to merge this whenever you think it's ready. The Appveyor CI should be disabled now.

@truemedian maybe without merge rights, If you finish, please let @luvit/luvit-admin team do that, and thank you for great work.

@zhaozg zhaozg merged commit eaf48f2 into luvit:master Jul 4, 2024
50 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.

3 participants