summaryrefslogtreecommitdiff
path: root/meta.lua
blob: a825f95740ac7b8b94e565f9391cadc77a42c2c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

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 sources = {
  --mingw32 = "mingw32-x86",
  mingw64 = "mingw32-x86_64",
  --"clang32",
  --"claing64"
}

local builds = {}

for image, arch, version, link in cartesian(sources, lua_versions) do
  builds["image-luarocks-" .. version.. "-" .. image] = {
    image = "image-" .. image,
    requires = {
      {"http", link}
    },
    produces = {},
    export = true,
    env = {
      maj = version:match("(%d)%d"),
      min = version:match("%d(%d)"),
      arch = arch,
    }
  }
end


return builds