diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-09-17 12:51:05 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-09-17 12:51:05 -0500 |
commit | c913875bc40bcbd4d5382cf6de01ac6101bbaf33 (patch) | |
tree | 056f3f52772c40bba475f12a39fab406862f4cac | |
parent | 1e0f60767626067382b97a5e815e5a7138965601 (diff) | |
download | luarocks-packaging-c913875bc40bcbd4d5382cf6de01ac6101bbaf33.tar.gz luarocks-packaging-c913875bc40bcbd4d5382cf6de01ac6101bbaf33.tar.bz2 luarocks-packaging-c913875bc40bcbd4d5382cf6de01ac6101bbaf33.zip |
Work on packaging
-rwxr-xr-x | init | 13 | ||||
-rw-r--r-- | meta.lua | 51 |
2 files changed, 59 insertions, 5 deletions
@@ -1 +1,14 @@ | |||
1 | #!/bin/sh -ex | 1 | #!/bin/sh -ex |
2 | |||
3 | if [ -e libluajit.a ]; then | ||
4 | mv libluajit.a liblua.a | ||
5 | fi | ||
6 | cd luarocks/binary | ||
7 | mkdir build-windows-deps-cicd | ||
8 | cd build-windows-deps-cicd | ||
9 | cp /root/liblua.a . | ||
10 | cp /root/libssl.a . | ||
11 | cp /root/libz.a . | ||
12 | |||
13 | cd .. | ||
14 | make WINDOWS_DEPS_DIR=windows-deps-cicd | ||
@@ -1,6 +1,47 @@ | |||
1 | return { | 1 | local 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 | } | ||
8 | local 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 | } |
19 | local debug = { | ||
20 | --[[ | ||
21 | release = "", | ||
22 | ]] | ||
23 | debug = "-g", | ||
24 | } | ||
25 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | ||
26 | |||
27 | local builds = {} | ||
28 | for 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 | |||
46 | end | ||
47 | return builds | ||