Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
luaVersion: ["5.1.5", "5.2.4", "5.3.6", "5.4.8", "luajit", "luajit-2.0", "luajit-2.1", "luajit-2.0.5", "luajit-2.1.0-beta3", "luajit-openresty", "5.1", "5.4", "5.5"]
luaVersion: ["5.1.5", "5.2.4", "5.3.6", "5.4.8", "5.5.0", "luajit", "luajit-2.0", "luajit-2.1", "luajit-2.0.5", "luajit-2.1.0-beta3", "luajit-openresty", "5.1", "5.4", "5.5"]
machineTag: ["ubuntu-latest", "macos-latest", "windows-latest"]
exclude:
- luaVersion: "luajit-2.0"
Expand All @@ -30,7 +30,7 @@ jobs:
steps:
- uses: actions/checkout@main

- uses: ilammy/msvc-dev-cmd@v1
- uses: step-security/msvc-dev-cmd@v1

- name: Build Lua
uses: './'
Expand All @@ -47,7 +47,7 @@ jobs:
strategy:
fail-fast: false
matrix:
luaVersion: ["5.1.5", "5.2.4", "5.3.6", "5.4.8", "luajit", "luajit-2.0", "luajit-2.1", "luajit-2.0.5", "luajit-2.1.0-beta3", "luajit-openresty", "5.1", "5.4"]
luaVersion: ["5.1.5", "5.2.4", "5.3.6", "5.4.8", "5.5.0", "luajit", "luajit-2.0", "luajit-2.1", "luajit-2.0.5", "luajit-2.1.0-beta3", "luajit-openresty", "5.1", "5.4"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Match line 16?

Suggested change
luaVersion: ["5.1.5", "5.2.4", "5.3.6", "5.4.8", "5.5.0", "luajit", "luajit-2.0", "luajit-2.1", "luajit-2.0.5", "luajit-2.1.0-beta3", "luajit-openresty", "5.1", "5.4"]
luaVersion: ["5.1.5", "5.2.4", "5.3.6", "5.4.8", "5.5.0", "luajit", "luajit-2.0", "luajit-2.1", "luajit-2.0.5", "luajit-2.1.0-beta3", "luajit-openresty", "5.1", "5.4", "5.5"]

machineTag: ["ubuntu-latest", "macos-latest", "windows-latest"]
exclude:
- luaVersion: "luajit-2.0"
Expand All @@ -64,7 +64,7 @@ jobs:
steps:
- uses: actions/checkout@main

- uses: ilammy/msvc-dev-cmd@v1
- uses: step-security/msvc-dev-cmd@v1

- name: Get Lua from cache
uses: './'
Expand Down
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,42 +19,42 @@ Other Lua GitHub actions:

## Usage

Install Lua: (Will typically default to the latest release, 5.4.8 as of this readme)
Install Lua: (Will typically default to the latest release, 5.5.0 as of this readme)

```yaml
- uses: luarocks/gh-actions-lua@v11
- uses: luarocks/gh-actions-lua@v12
```

Install specific version of Lua:

```yaml
- uses: luarocks/gh-actions-lua@v11
- uses: luarocks/gh-actions-lua@v12
with:
luaVersion: "5.1.5"
```

Install specific version of LuaJIT:

```yaml
- uses: luarocks/gh-actions-lua@v11
- uses: luarocks/gh-actions-lua@v12
with:
luaVersion: "luajit-2.1.0-beta3"
```

When using Windows the following prerequisite action must be run before
building Lua: [`ilammy/msvc-dev-cmd@v1`](https://github.com/ilammy/msvc-dev-cmd). It is safe to
building Lua: [`step-security/msvc-dev-cmd@v1`](https://github.com/step-security/msvc-dev-cmd). It is safe to
include this line on non-Windows platforms, as the action will do nothing in those cases.

```yaml
- uses: ilammy/msvc-dev-cmd@v1
- uses: step-security/msvc-dev-cmd@v1
- uses: luarocks/gh-actions-lua@v11
```

## Inputs

### `luaVersion`

**Default**: `"5.4"`
**Default**: `"5.5"`

Specifies the version of Lua to install. The version name instructs the action
where to download the source from.
Expand All @@ -65,6 +65,7 @@ Examples of versions:
* `"5.2.4"`
* `"5.3.5"`
* `"5.4.1"`
* `"5.5.0"`
* `"luajit-2.0"`
* `"luajit-2.1"`
* `"luajit-master"`
Expand All @@ -78,7 +79,7 @@ The version specifies where the source is downloaded from:

**Version aliases**

You can use shorthand `5.1`, `5.2`, `5.3`, `5.4`, `luajit` version aliases to point to the
You can use shorthand `5.1`, `5.2`, `5.3`, `5.4`, `5.5`, `luajit` version aliases to point to the
latest (or recent) version of Lua for that version.

### `luaCompileFlags`
Expand All @@ -90,7 +91,7 @@ Additional flags to pass to `make` when building Lua.
Example value:

```yaml
- uses: luarocks/gh-actions-lua@v11
- uses: luarocks/gh-actions-lua@v12
with:
luaVersion: 5.3
luaCompileFlags: LUA_CFLAGS="-DLUA_INT_TYPE=LUA_INT_INT"
Expand All @@ -101,7 +102,7 @@ Example value:
## Full Example

This example is for running tests on a Lua module that uses LuaRocks for
dependencies and [busted](https://olivinelabs.com/busted/) for a test suite.
dependencies and [busted](https://github.com/lunarmodules/busted) for a test suite.

Create `.github/workflows/test.yml` in your repository:

Expand All @@ -115,13 +116,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: luarocks/gh-actions-lua@v11
- uses: luarocks/gh-actions-lua@v12
with:
luaVersion: "5.1.5"

- uses: luarocks/gh-actions-luarocks@v6
- uses: luarocks/gh-actions-luarocks@v7

- name: build
run: |
Expand Down Expand Up @@ -153,8 +154,8 @@ jobs:
luaVersion: ["5.1.5", "5.2.4", "luajit-2.1.0-beta3"]

steps:
- uses: actions/checkout@v4
- uses: luarocks/gh-actions-lua@v11
- uses: actions/checkout@v7
- uses: luarocks/gh-actions-lua@v12
with:
luaVersion: ${{ matrix.luaVersion }}

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
luaVersion:
description: "The version of Lua to install, must be available on https://www.lua.org/ftp/ or http://luajit.org/download.html"
required: false
default: "5.4"
default: "5.5"
luaCompileFlags:
description: "Command line flags passed to make when building Lua"
required: false
Expand Down
Loading