Skip to content
 
 

Latest commit

 

History

118 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Action for LuaRocks

luarocks/gh-actions-luarocks

Actions Status

Builds and installs LuaRocks from source into the .luarocks/ directory in the working directory. Configures PATH, LUA_PATH, and LUA_CPATH environment variables to be able to use the luarocks command directly in workflows, and require installed modules in Lua.

luarocks/gh-actions-lua can be used to install Lua, which is required for LuaRocks to build and run. (This action will use any Lua installed in .lua/).

Usage

Installs Lua, LuaRocks, then install a module:

- uses: luarocks/gh-actions-lua@v14
- uses: luarocks/gh-actions-luarocks@v7

# Install some package
- name: install a module
  run: luarocks install moonscript

For a more complete example see: https://github.com/luarocks/gh-actions-lua/blob/master/README.md#full-example

Inputs

luaRocksVersion

Default: "3.13.0"

Specifies which version of LuaRocks to install. Must be listed on https://luarocks.github.io/luarocks/releases/

Example:

- uses: luarocks/gh-actions-luarocks@v7
  with:
    luaRocksVersion: "3.1.3"

withLuaPath

Default: null (Optional)

Manually specify the path to an existing Lua installation to use. This is not necessary if you are using luarocks/gh-actions-lua. Will build LuaRocks with ./configure --with-lua=$withLuaPath

Example:

- uses: luarocks/gh-actions-luarocks@v7
  with:
    withLuaPath: "/usr/local/openresty/luajit/"

About

GitHub action for installing LuaRocks

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages