diff --git a/.changeset/big-ghosts-rescue.md b/.changeset/big-ghosts-rescue.md new file mode 100644 index 00000000..4794ee5b --- /dev/null +++ b/.changeset/big-ghosts-rescue.md @@ -0,0 +1,5 @@ +--- +"@cartesi/cli": patch +--- + +enforce build for linux/riscv64 platform diff --git a/apps/cli/src/commands/build.ts b/apps/cli/src/commands/build.ts index 47a85dcd..cd5d4e0c 100644 --- a/apps/cli/src/commands/build.ts +++ b/apps/cli/src/commands/build.ts @@ -69,7 +69,15 @@ export default class BuildApplication extends BaseCommand< this.debug( `building docker image and writing result to ${buildResult}`, ); - const args = ["buildx", "build", "--load", "--iidfile", buildResult]; + const args = [ + "buildx", + "build", + "--load", + "--iidfile", + buildResult, + "--platform", + "linux/riscv64", + ]; if (options.target) { args.push("--target", options.target); }