From 9814fdb4259ffef78f0368c35c96e6c2eb41a8d9 Mon Sep 17 00:00:00 2001 From: Jacob Kiers Date: Wed, 10 Aug 2022 22:57:46 +0000 Subject: [PATCH] Jsonnet test 5 --- .drone.jsonnet | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 4dda9e4..45cea39 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -1,3 +1,11 @@ +local buildForArch(arch) = { + "name": "check", + "image": "rust:1.62", + "commands": [ + "echo Hello World from Jsonnet on " + arch + "!", + "cargo check", + ] +} { "kind": "pipeline", "type": "docker", @@ -6,13 +14,8 @@ "arch": "amd64" }, "steps": [ - { - "name": "check", - "image": "rust:1.62", - "commands": [ - "echo Hello World from Jsonnet!", - "cargo check", - ] - } + buildForArch('amd64'), + buildForArch('aarch64'), + buildForArch('windows') ] } \ No newline at end of file