diff options
-rwxr-xr-x | init | 2 | ||||
-rw-r--r-- | meta.lua | 38 |
2 files changed, 35 insertions, 5 deletions
@@ -1 +1,3 @@ | |||
1 | #!/bin/sh -ex | 1 | #!/bin/sh -ex |
2 | |||
3 | apk add cmake | ||
@@ -1,6 +1,34 @@ | |||
1 | return { | 1 | local optimizations = { |
2 | ["yuescript"] = { | 2 | tiny = "-Oz", |
3 | requires = {}, | 3 | size = "-Os", |
4 | produces = {}, | 4 | debug = "-Og", |
5 | } | 5 | zero = "-O0", |
6 | one = "-O1", | ||
7 | two = "-O2", | ||
8 | three = "-O3", | ||
9 | } | ||
10 | local debug = { | ||
11 | release = "", | ||
12 | debug = "-g", | ||
6 | } | 13 | } |
14 | local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} | ||
15 | local builds = {} | ||
16 | |||
17 | for name, optimization, rel, flag, _, image in cartesian(optimizations, debug, compilers) do | ||
18 | local name = "yuescript-" .. name .. "-" .. rel .. "-" .. image | ||
19 | builds[name] = { | ||
20 | image = "image-" .. image, | ||
21 | requires = { | ||
22 | {"git","yuescript"}, | ||
23 | {"cicd", "image-" .. image}, | ||
24 | }, | ||
25 | produces = { | ||
26 | ["yue.so"] = true, | ||
27 | }, | ||
28 | env = { | ||
29 | CFLAGS = optimization .. " " .. flag, | ||
30 | }, | ||
31 | timeout=300, | ||
32 | } | ||
33 | end | ||
34 | return builds | ||