local lua_versions = { ["51"] = "https://www.lua.org/ftp/lua-5.1.5.tar.gz", --[[ ["52"] = "https://www.lua.org/ftp/lua-5.2.4.tar.gz", ["53"] = "https://www.lua.org/ftp/lua-5.3.6.tar.gz", ["54"] = "https://www.lua.org/ftp/lua-5.4.7.tar.gz", ]] } local optimizations = { --[[ size = "-Os", zero = "-O0", one = "-O1", two = "-O2", ]] three = "-O3", } local debug = { --[[ release = "", ]] debug = "-g", } local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]} local builds = {} for _,image,lua_ver,link in cartesian(compilers,lua_versions) do builds["image-luafilesystem-" .. image .. "-lua" .. lua_ver] = { image = "image-luafilesystem" .. image .. "-lua" .. lua_ver, requires = { {"http",link} }, produces = {}, export = true, entrypoint = "prepare", env = { rockver = lua_ver:gsub("(%d)(%d)$","%1.%2") } } end for version, link, name, optimization, rel, flag, _, image in cartesian(lua_versions, optimizations, debug, compilers) do local name = "lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image builds[name] = { image = "image-luafilesystem-" .. image .. "-lua" .. lua_ver, requires = { {"git", "luafilesystem"}, {"cicd","lua" .. version .. "-" .. name .. "-" .. rel .. "-" .. image}, }, produces = { "luafilesystem-git-1.win32-" .. image .. ".rock" }, env = { CFLAGS = optimization .. " " .. flag, rockver = lua_ver:gsub("(%d)(%d)$","%1.%2") }, } end