Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leafo/gh-actions-luarocks
GitHub action for installing LuaRocks
https://github.com/leafo/gh-actions-luarocks
github-actions lua
Last synced: 3 months ago
JSON representation
GitHub action for installing LuaRocks
- Host: GitHub
- URL: https://github.com/leafo/gh-actions-luarocks
- Owner: leafo
- Created: 2019-09-07T15:34:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-14T12:05:13.000Z (8 months ago)
- Last Synced: 2024-07-18T19:10:38.593Z (4 months ago)
- Topics: github-actions, lua
- Language: JavaScript
- Homepage:
- Size: 483 KB
- Stars: 42
- Watchers: 5
- Forks: 16
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Github Action for LuaRocks
### `leafo/gh-actions-luarocks`
[![Actions Status](https://github.com/leafo/gh-actions-luarocks/workflows/test/badge.svg)](https://github.com/leafo/gh-actions-luarocks/actions)
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.
[`leafo/gh-actions-lua`](https://github.com/marketplace/actions/install-lua-luajit) 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:
```yaml
- uses: leafo/gh-actions-lua@v9
- uses: leafo/gh-actions-luarocks@v4# Install some package
- name: install a module
run: luarocks install moonscript
```For a more complete example see: https://github.com/leafo/gh-actions-lua/blob/master/README.md#full-example
## Inputs
### `luarocksVersion`
**Default**: `"3.8.0"`
Specifies which version of LuaRocks to install. Must be listed on https://luarocks.github.io/luarocks/releases/
Example:
```yaml
- uses: leafo/gh-actions-luarocks@v4
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 `leafo/gh-actions-lua`. Will build LuaRocks with
`./configure --with-lua=$withLuaPath`Example:
```yaml
- uses: leafo/gh-actions-luarocks@v4
with:
withLuaPath: "/usr/local/openresty/luajit/"
```