Skip to content

alis-is/eli

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
lib
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eli
 
 
 
 

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='x86_64-linux-musl-cross;i686-linux-musl-cross;aarch64-linux-musl-cross' -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

Libraries used for build: