diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-12-18 20:59:56 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-12-18 20:59:56 -0600 |
| commit | 07be09e913614cbee497de26e17f55539332afb3 (patch) | |
| tree | 25008a1557aab80603882d134c48d3f70a3b4322 | |
| parent | 9a38e493391a01b0d9934bb4957a760ecb96617c (diff) | |
| download | yuescript-packaging-master.tar.gz yuescript-packaging-master.tar.bz2 yuescript-packaging-master.zip | |
Diffstat (limited to '')
| -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 | ||
