Jsonnet test 8
This commit is contained in:
parent
5193063f93
commit
d2175367a6
@ -1,5 +1,15 @@
|
|||||||
|
local archs = [
|
||||||
|
"aarch64-unknown-linux-gnu",
|
||||||
|
"aarch64-unknown-linux-musl",
|
||||||
|
"x86_64-pc-windows-gnu",
|
||||||
|
"x86_64-unknown-linux-gnu",
|
||||||
|
"x86_64-unknown-linux-musl"
|
||||||
|
]
|
||||||
|
|
||||||
|
local getStepName(arch) = "check-"+arch;
|
||||||
|
|
||||||
local buildForArch(arch) = {
|
local buildForArch(arch) = {
|
||||||
"name": "check-"+arch,
|
"name": getStepName(arch),
|
||||||
"image": "rust:1.62",
|
"image": "rust:1.62",
|
||||||
"commands": [
|
"commands": [
|
||||||
"echo Hello World from Jsonnet on " + arch + "!",
|
"echo Hello World from Jsonnet on " + arch + "!",
|
||||||
@ -14,8 +24,14 @@ local buildForArch(arch) = {
|
|||||||
"arch": "amd64"
|
"arch": "amd64"
|
||||||
},
|
},
|
||||||
"steps": [
|
"steps": [
|
||||||
buildForArch('amd64'),
|
buildForArch(a) for a in archs,
|
||||||
buildForArch('aarch64'),
|
{
|
||||||
buildForArch('windows'),
|
"name": "release",
|
||||||
|
"image": "rust:1.62",
|
||||||
|
"commands": [
|
||||||
|
"echo Done!",
|
||||||
|
],
|
||||||
|
"depends_on": [ getStepName(a) for a in archs, ],
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user