Skip to content

Conversation

@luau-project
Copy link

Description

Implements continuous integration (CI) to build LuaSec (on push and pull requests) on Ubuntu, macOS and Windows (x64 architecture) using multiple Lua versions and interpreters:

  • PUC-Rio Lua:
    • 5.1
    • 5.2
    • 5.3
    • 5.4
  • LuaJIT
  • OpenResty

Note

On Windows, we build LuaSec using both MSVC and MinGW-w64 toolchains.

Important

On each platform (Ubuntu, macOS and Windows), the process to build OpenSSL from source code usually takes a lot of time (> 20 minutes). For this reason, we:

  • install OpenSSL from the distro repositories on Ubuntu
  • install OpenSSL from homebrew on macOS
  • use OpenSSL binaries already installed in the machine on Windows when using the MSVC toolchain
  • use OpenSSL binaries provided by MSYS2 on Windows when using the MinGW-w64 toolchains (gcc and clang) from MSYS2

Changes

  • added a development rockspec named luasec-dev-1.rockspec, mirrored from luasec-1.3.2-1.rockspec, used to drive the build on CI;
  • added a new workflow .github/workflows/test.yaml such that:
    • the test job is used to build LuaSec employing the Lua versions described above on Ubuntu, macOS and Windows (MSVC only);
    • the test-MinGW-w64 job is used to build LuaSec employing the Lua versions described above on Windows (MinGW-w64 only), using either gcc or clang.

PS

In the future, in case you need any help to update the proposed workflow whenever it stops working, just mention me using @

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant