diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1e88cb..e3ebf0d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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" @@ -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: './' @@ -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"] machineTag: ["ubuntu-latest", "macos-latest", "windows-latest"] exclude: - luaVersion: "luajit-2.0" @@ -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: './' diff --git a/README.md b/README.md index eafb789..f11e160 100644 --- a/README.md +++ b/README.md @@ -19,16 +19,16 @@ 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" ``` @@ -36,17 +36,17 @@ Install specific version of Lua: 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 ``` @@ -54,7 +54,7 @@ include this line on non-Windows platforms, as the action will do nothing in tho ### `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. @@ -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"` @@ -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` @@ -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" @@ -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: @@ -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: | @@ -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 }} diff --git a/action.yml b/action.yml index 68da5d4..e8358b5 100644 --- a/action.yml +++ b/action.yml @@ -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