aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-09-17 12:51:05 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-09-17 12:51:05 -0500
commitc913875bc40bcbd4d5382cf6de01ac6101bbaf33 (patch)
tree056f3f52772c40bba475f12a39fab406862f4cac
parent1e0f60767626067382b97a5e815e5a7138965601 (diff)
downloadluarocks-packaging-c913875bc40bcbd4d5382cf6de01ac6101bbaf33.tar.gz
luarocks-packaging-c913875bc40bcbd4d5382cf6de01ac6101bbaf33.tar.bz2
luarocks-packaging-c913875bc40bcbd4d5382cf6de01ac6101bbaf33.zip
Work on packaging
-rwxr-xr-xinit13
-rw-r--r--meta.lua51
2 files changed, 59 insertions, 5 deletions
diff --git a/init b/init
index 642d265..cd3b57e 100755
--- a/init
+++ b/init
@@ -1 +1,14 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2
3if [ -e libluajit.a ]; then
4 mv libluajit.a liblua.a
5fi
6cd luarocks/binary
7mkdir build-windows-deps-cicd
8cd build-windows-deps-cicd
9cp /root/liblua.a .
10cp /root/libssl.a .
11cp /root/libz.a .
12
13cd ..
14make WINDOWS_DEPS_DIR=windows-deps-cicd
diff --git a/meta.lua b/meta.lua
index c0fcd5c..2ea6ee6 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,6 +1,47 @@
1return { 1local lua_versions = {
2 ["luarocks"] = { 2 ["51"] = "liblua.a",
3 requires = {}, 3 ["52"] = "liblua.a",
4 produces = {}, 4 ["53"] = "liblua.a",
5 } 5 ["54"] = "liblua.a",
6 ["jit"] = "libluajit.a",
7}
8local optimizations = {
9 tiny = "-Oz",
10 --[[
11 size = "-Os",
12 debug = "-Og",
13 zero = "-O0",
14 one = "-O1",
15 two = "-O2",
16 three = "-O3",
17 ]]
6} 18}
19local debug = {
20 --[[
21 release = "",
22 ]]
23 debug = "-g",
24}
25local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
26
27local builds = {}
28for version_k, version_v, opti_k, opti_v, debug_k, debug_v, comp_k, comp_v in cartesian(lua_versions, optimizations, debug, compilers) do
29 local name = "luarocks-" .. version_k .. "-" .. opti_k .. "-" .. debug_k .. "-" .. comp_v
30 builds[name] = {
31 image="image-" .. comp_v,
32 requires = {
33 {"git", "luarocks"},
34 {"cicd", "libressl-" .. opti_k .. "-" .. debug_k .. "-" .. comp_v .. ":libssl.a"},
35 {"cicd", "libz-" .. opti_k .. "-" .. debug_k .. "-" .. comp_v .. ":libz.a"},
36 {"cicd", "lua" .. version_k .. "-" .. opti_k .. "-" .. debug_k .. "-" .. comp_v .. ":" .. version_v},
37 },
38 produces = {
39 ["luarocks.exe"] = true,
40 },
41 env = {
42 CFLAGS=" " .. opti_v .. " " .. debug_v,
43 }
44 }
45
46end
47return builds