diff options
| -rw-r--r-- | meta.lua | 20 |
1 files changed, 11 insertions, 9 deletions
| @@ -1,12 +1,14 @@ | |||
| 1 | local compat_versions = { | 1 | local compat_versions = { |
| 2 | ["scm-1"] = true, | 2 | ["scm-1"] = "master", |
| 3 | ["0.14.3-1"] = true, | 3 | ["0.14.3-1"] = "v0.14.3", |
| 4 | ["0.14.2-1"] = true, | 4 | ["0.14.2-1"] = "v0.14.2", |
| 5 | ["0.14.1-1"] = true, | 5 | ["0.14.1-1"] = "v0.14.1", |
| 6 | ["0.14-1"] = true, | ||
| 7 | ["0.13-1"] = true, | ||
| 8 | ["0.12-1"] = true, | ||
| 9 | } | 6 | } |
| 7 | for i = 1,14 do | ||
| 8 | if i ~= 9 and i ~= 10 then | ||
| 9 | compat_versions["0." .. tostring(i) .. "-1"] = "v0." .. tostring(i) | ||
| 10 | end | ||
| 11 | end | ||
| 10 | local lua_versions = { | 12 | local lua_versions = { |
| 11 | ["51"] = true, | 13 | ["51"] = true, |
| 12 | ["52"] = true, | 14 | ["52"] = true, |
| @@ -30,12 +32,12 @@ local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | |||
| 30 | 32 | ||
| 31 | local builds = {} | 33 | local builds = {} |
| 32 | for version, _, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do | 34 | for version, _, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do |
| 33 | for package_version,_ in pairs(compat_versions) do | 35 | for package_version,branch in pairs(compat_versions) do |
| 34 | local buildname = "lua-compat-53-" .. package_version:gsub("[%W]","-") .. "-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image | 36 | local buildname = "lua-compat-53-" .. package_version:gsub("[%W]","-") .. "-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image |
| 35 | builds[buildname] = { | 37 | builds[buildname] = { |
| 36 | image = "image-luarocks-" .. version.. "-" .. image, | 38 | image = "image-luarocks-" .. version.. "-" .. image, |
| 37 | requires = { | 39 | requires = { |
| 38 | {"git", "lua-compat-5.3"}, | 40 | {"git", "lua-compat-5.3#" .. branch}, |
| 39 | {"cicd","image-luarocks-" .. version .. "-" .. image}, | 41 | {"cicd","image-luarocks-" .. version .. "-" .. image}, |
| 40 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, | 42 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, |
| 41 | }, | 43 | }, |
