From c1a3a006bd8236ae3d9306f21f1fcd9b83197de8 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Fri, 15 Aug 2025 10:48:30 -0400 Subject: [PATCH] feat: Add list of platforms to recipe --- src-tsp/main.tsp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src-tsp/main.tsp b/src-tsp/main.tsp index 053d262..c7cbba0 100644 --- a/src-tsp/main.tsp +++ b/src-tsp/main.tsp @@ -50,6 +50,11 @@ model Recipe { */ `nushell-version`?: string; + /** + * A list of platforms that will be built for the image. + */ + platforms?: Array; + /** * A list of [stages](https://blue-build.org/reference/stages/) that are executed before the build of the final image. * This is useful for compiling programs from source without polluting the final bootable image. @@ -64,6 +69,25 @@ model Recipe { modules: Array; } +enum Platform { + LinuxAmd64: "linux/amd64", + LinuxAmd64V2: "linux/amd64/v2", + LinuxArm64: "linux/arm64", + LinuxArm: "linux/arm", + LinuxArmV6: "linux/arm/v6", + LinuxArmV7: "linux/arm/v7", + Linux386: "linux/386", + LinuxLoong64: "linux/loong64", + LinuxMips: "linux/mips", + LinuxMipsle: "linux/mipsle", + LinuxMips64: "linux/mips64", + LinuxMips64le: "linux/mips64le", + LinuxPpc64: "linux/ppc64", + LinuxPpc64le: "linux/ppc64le", + LinuxRiscv64: "linux/riscv64", + LinuxS390x: "linux/s390x", +} + @jsonSchema("stage-list-v1.json") model StageList { /**