Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
moon

GitHub Action

Install LuaRocks

v2

Install LuaRocks

moon

Install LuaRocks

Download, build, and install LuaRocks for use with scripts, tests, and more

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Install LuaRocks

uses: leafo/gh-actions-luarocks@v2

Learn more about this action in leafo/gh-actions-luarocks

Choose a version

Github Action for LuaRocks

leafo/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.

leafo/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: leafo/gh-actions-lua@v2
- uses: leafo/gh-actions-luarocks@v2

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

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

Inputs

luarocksVersion

Default: "3.2.0"

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

Example:

- uses: leafo/gh-actions-luarocks@v2
  with:
    luarocksVersion: "3.1.3"