diff options
Diffstat (limited to 'meta.lua')
-rw-r--r-- | meta.lua | 35 |
1 files changed, 27 insertions, 8 deletions
@@ -1,4 +1,4 @@ | |||
1 | local package_versions = { | 1 | local compat_versions = { |
2 | ["scm-1"] = true, | 2 | ["scm-1"] = true, |
3 | ["0.12-1"] = true | 3 | ["0.12-1"] = true |
4 | } | 4 | } |
@@ -24,22 +24,41 @@ local debug = { | |||
24 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | 24 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} |
25 | 25 | ||
26 | local builds = {} | 26 | local builds = {} |
27 | for package_version, _, version, _, name, optimization, rel, flag, _, image in cartesian(package_versions, lua_versions, optimizations, debug, compilers) do | 27 | for version, _, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do |
28 | local buildname = "lua-compat-53-".. package_version:gsub("[%W]","-") .. "-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image | 28 | for package_version,_ in pairs(compat_versions) do |
29 | builds[buildname] = { | 29 | local buildname = "lua-compat-53-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image |
30 | image = "image-luarocks-" .. version.. "-" .. image, | 30 | builds[buildname] = { |
31 | image = "image-luarocks-" .. version.. "-" .. image, | ||
32 | requires = { | ||
33 | {"git", "lua-compat-5.3"}, | ||
34 | {"cicd","image-luarocks-" .. version .. "-" .. image}, | ||
35 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, | ||
36 | }, | ||
37 | produces = { | ||
38 | ["compat53-" .. package_version .. ".mingw32-x86_64.rock"] = {"luarocks.sh", "compat53", image, version, name, rel}, | ||
39 | }, | ||
40 | env = { | ||
41 | CFLAGS = optimization .. " " .. flag, | ||
42 | packver = package_version, | ||
43 | rockver = version:gsub("(%d)(%d)$","%1.%2"), | ||
44 | version = version | ||
45 | }, | ||
46 | } | ||
47 | end | ||
48 | local buildname2 = "lua-bit32-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image | ||
49 | builds[buildname2] = { | ||
50 | image = "image-luarocks-" .. version .. "-" .. image, | ||
51 | entrypoint="bit32", | ||
31 | requires = { | 52 | requires = { |
32 | {"git", "lua-compat-5.3"}, | 53 | {"git", "lua-compat-5.3"}, |
33 | {"cicd","image-luarocks-" .. version .. "-" .. image}, | 54 | {"cicd","image-luarocks-" .. version .. "-" .. image}, |
34 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, | 55 | {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"}, |
35 | }, | 56 | }, |
36 | produces = { | 57 | produces = { |
37 | ["compat53-" .. package_version .. ".mingw32-x86_64.rock"] = {"luarocks.sh", "compat53", image, version, name, rel}, | 58 | ["bit32-scm-1.mingw32-x86_64.rock"] = {"luarocks.sh", "bit32", image, version, name, rel}, |
38 | ["bit32-" .. package_version .. ".mingw32-x86_64.rock"] = {"luarocks.sh", "bit32", image, version, name, rel}, | ||
39 | }, | 59 | }, |
40 | env = { | 60 | env = { |
41 | CFLAGS = optimization .. " " .. flag, | 61 | CFLAGS = optimization .. " " .. flag, |
42 | packver = package_version, | ||
43 | rockver = version:gsub("(%d)(%d)$","%1.%2"), | 62 | rockver = version:gsub("(%d)(%d)$","%1.%2"), |
44 | version = version | 63 | version = version |
45 | }, | 64 | }, |