summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-12-21 23:32:43 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-12-21 23:32:43 -0600
commit961e0200df2e7173a76458c4ff34cbfe5d9c64f9 (patch)
tree381e7d1995cc2f853cb1a91462fdc1726b0d83cf
parent5d05160504b4eba199012923a4e2d972d6051e61 (diff)
downloadlua-compat-53-packaging-961e0200df2e7173a76458c4ff34cbfe5d9c64f9.tar.gz
lua-compat-53-packaging-961e0200df2e7173a76458c4ff34cbfe5d9c64f9.tar.bz2
lua-compat-53-packaging-961e0200df2e7173a76458c4ff34cbfe5d9c64f9.zip
Build all versions of compat53
-rw-r--r--meta.lua20
1 files changed, 11 insertions, 9 deletions
diff --git a/meta.lua b/meta.lua
index 250ccb9..b08d25d 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,12 +1,14 @@
1local compat_versions = { 1local 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}
7for i = 1,14 do
8 if i ~= 9 and i ~= 10 then
9 compat_versions["0." .. tostring(i) .. "-1"] = "v0." .. tostring(i)
10 end
11end
10local lua_versions = { 12local 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
31local builds = {} 33local builds = {}
32for version, _, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do 34for 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 },