summaryrefslogtreecommitdiff
path: root/meta.lua
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2026-02-16 20:12:56 -0600
committerAlexander M Pickering <alex@cogarr.net>2026-02-16 20:12:56 -0600
commitf5af62214022da29708ad2b14f1a968d9256e959 (patch)
treeaa0ff724a539beb4a7dd11d9bf81a4bd938c7073 /meta.lua
parent1c4b800b1058cf98ad8893c9699129a890f313fd (diff)
downloadluasocket-packaging-f5af62214022da29708ad2b14f1a968d9256e959.tar.gz
luasocket-packaging-f5af62214022da29708ad2b14f1a968d9256e959.tar.bz2
luasocket-packaging-f5af62214022da29708ad2b14f1a968d9256e959.zip
Start working on packaging
Diffstat (limited to 'meta.lua')
-rw-r--r--meta.lua58
1 files changed, 53 insertions, 5 deletions
diff --git a/meta.lua b/meta.lua
index 8a67aaa..8d35837 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,6 +1,54 @@
1return { 1local lua_versions = {
2 ["luasocket"] = { 2 ["51"] = true,
3 requires = {}, 3 ["52"] = true,
4 produces = {}, 4 ["53"] = true,
5 } 5 ["54"] = true,
6} 6}
7
8local optimizations = {
9 tiny = "-Oz",
10 size = "-Os",
11 zero = "-O0",
12 one = "-O1",
13 two = "-O2",
14 three = "-O3",
15 debug = "-Og",
16}
17
18local debug = {
19 release = "",
20 debug = "-g",
21}
22local compilers = {
23 --[[
24 "mingw32",
25 ]]
26 "mingw64",
27 --[[
28 "clang32",
29 "clang64",
30 ]]
31}
32local builds = {}
33
34for version, _, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do
35 local buildname = "lusocket-" .. version .. "-" .. image
36 builds[buildname] = {
37 image = "image-luarocks-" .. version .. "-" .. image,
38 requires = {
39 {"git", "lpeg"},
40 {"cicd", "image-luarocks-" .. version .. "-" .. image},
41 {"cicd", "lua" .. table.concat({version, name, rel, image}, "-") .. ":lua" .. version .. ".dll"},
42 },
43 produces = {
44 ["lusocket-3.1.0-1.mingw32-x86_64.rock"] = {"luarocks.sh", "luasocket", image, version, name, rel},
45 },
46 env = {
47 CFLAGS = optimization .. " " .. flag,
48 rockver = version:gsub("(%d)(%d)$", "%1.%2"),
49 version = version,
50 },
51 }
52end
53
54return builds