Skip to content
/ eli Public

Lua Interpreter & Essential libraries for simple cross platform scripting

License

Notifications You must be signed in to change notification settings

alis-is/eli

Repository files navigation

eli - Lua interpreter & essentials

Contains libs and function necessary for basic server side scripting.

Embedded libraries:

Predefined variables:

  • interpreter - path to interpreter
  • APP_ROOT_SCRIPT - path to executed script
  • APP_ROOT - path to directory containing APP_ROOT_SCRIPT
  • ELI_LIB_VERSION - version of eli library

Install latest binary release (currently unix only)

wget -q https://raw.githubusercontent.com/alis-is/eli/main/install.sh -O /tmp/install.sh && sudo sh /tmp/install.sh

Build eli

Build requirements:

  • docker or podman

Steps:

  1. git clone https://github.com/alis-is/eli && cd eli
  2. docker build -t elibuild ./containers/build
  3. docker build -t elitest ./containers/test
  4. docker run -w "/root/luabuild" -v $(pwd):"/root/luabuild" -v "$(pwd)/toolchains:/opt/cross" -e TOOLCHAINS='zig:x86_64-linux-musl;zig:x86_64-windows-gnu;zig:x86_64-macos-none' -it elibuild
  5. docker run -w "/root/luabuild" -v $(pwd):"/root/luabuild" -it elitest
  6. Built binaries eli and elic will be created in release directory

Note: You can choose build toolchain you like from https://musl.cc/ and set its name in TOOLCHAINS

Tests:

  • Run run_tests.sh with args and
    • Example: ./run_tests.sh $(pwd)/build/eli all.lua

Tools used for build: