From 07be09e913614cbee497de26e17f55539332afb3 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Wed, 18 Dec 2024 20:59:56 -0600 Subject: Start on yuescript --- init | 2 ++ meta.lua | 38 +++++++++++++++++++++++++++++++++----- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/init b/init index 642d265..24c639d 100755 --- a/init +++ b/init @@ -1 +1,3 @@ #!/bin/sh -ex + +apk add cmake diff --git a/meta.lua b/meta.lua index e41ab8c..a035496 100644 --- a/meta.lua +++ b/meta.lua @@ -1,6 +1,34 @@ -return { - ["yuescript"] = { - requires = {}, - produces = {}, - } +local optimizations = { + tiny = "-Oz", + size = "-Os", + debug = "-Og", + zero = "-O0", + one = "-O1", + two = "-O2", + three = "-O3", +} +local debug = { + release = "", + debug = "-g", } +local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} +local builds = {} + +for name, optimization, rel, flag, _, image in cartesian(optimizations, debug, compilers) do + local name = "yuescript-" .. name .. "-" .. rel .. "-" .. image + builds[name] = { + image = "image-" .. image, + requires = { + {"git","yuescript"}, + {"cicd", "image-" .. image}, + }, + produces = { + ["yue.so"] = true, + }, + env = { + CFLAGS = optimization .. " " .. flag, + }, + timeout=300, + } +end +return builds -- cgit v1.2.3-55-g6feb