summaryrefslogtreecommitdiff
path: root/meta.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--meta.lua47
1 files changed, 42 insertions, 5 deletions
diff --git a/meta.lua b/meta.lua
index 9c604d0..a98acf7 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,6 +1,43 @@
1return { 1local lua_versions = {
2 ["lua-term"] = { 2 ["51"] = true,
3 requires = {}, 3 ["52"] = true,
4 produces = {}, 4 ["53"] = true,
5 } 5 ["54"] = true,
6}
7local optimizations = {
8 tiny = "-Oz",
9 size = "-Os",
10 zero = "-O0",
11 one = "-O1",
12 two = "-O2",
13 three = "-O3",
14 debug = "-Og"
6} 15}
16local debug = {
17 release = "",
18 debug = "-g",
19}
20local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
21
22local builds = {}
23for version, _, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do
24 local buildname = "lua-term-" .. version .. "-" .. name .. "-" .. rel .. "-" .. image
25 builds[buildname] = {
26 image = "image-luarocks-" .. version.. "-" .. image,
27 requires = {
28 {"git", "lua-term"},
29 {"cicd","image-luarocks-" .. version .. "-" .. image},
30 {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image .. ":lua" .. version .. ".dll"},
31 },
32 produces = {
33 ["lua-term-0.8-1.mingw32-x86_64.rock"] = {"luarocks.sh", "lua-term", image, version, name, rel},
34 },
35 env = {
36 CFLAGS = optimization .. " " .. flag,
37 rockver = version:gsub("(%d)(%d)$","%1.%2"),
38 version = version
39 },
40 }
41end
42
43return builds