Jsonnet test 8
This commit is contained in:
		| @@ -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) = { | ||||
|     "name": "check-"+arch, | ||||
|     "name": getStepName(arch), | ||||
|     "image": "rust:1.62", | ||||
|     "commands": [ | ||||
|         "echo Hello World from Jsonnet on " + arch + "!", | ||||
| @@ -14,8 +24,14 @@ local buildForArch(arch) = { | ||||
|         "arch": "amd64" | ||||
|     }, | ||||
|     "steps": [ | ||||
|         buildForArch('amd64'), | ||||
|         buildForArch('aarch64'), | ||||
|         buildForArch('windows'), | ||||
|         buildForArch(a) for a in archs, | ||||
|         { | ||||
|             "name": "release", | ||||
|             "image": "rust:1.62", | ||||
|             "commands": [ | ||||
|                 "echo Done!", | ||||
|             ], | ||||
|             "depends_on": [ getStepName(a) for a in archs, ], | ||||
|         }, | ||||
|     ] | ||||
| } | ||||
		Reference in New Issue
	
	Block a user