summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-12-18 20:59:56 -0600
committerAlexander M Pickering <alex@cogarr.net>2024-12-18 20:59:56 -0600
commit07be09e913614cbee497de26e17f55539332afb3 (patch)
tree25008a1557aab80603882d134c48d3f70a3b4322
parent9a38e493391a01b0d9934bb4957a760ecb96617c (diff)
downloadyuescript-packaging-master.tar.gz
yuescript-packaging-master.tar.bz2
yuescript-packaging-master.zip
Start on yuescriptHEADmaster
-rwxr-xr-xinit2
-rw-r--r--meta.lua38
2 files changed, 35 insertions, 5 deletions
diff --git a/init b/init
index 642d265..24c639d 100755
--- a/init
+++ b/init
@@ -1 +1,3 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2
3apk add cmake
diff --git a/meta.lua b/meta.lua
index e41ab8c..a035496 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,6 +1,34 @@
1return { 1local 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}
10local debug = {
11 release = "",
12 debug = "-g",
6} 13}
14local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
15local builds = {}
16
17for 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 }
33end
34return builds