diff --git a/cmd/demo/BUILD.bazel b/cmd/demo/BUILD.bazel index d5c9437..c77654e 100644 --- a/cmd/demo/BUILD.bazel +++ b/cmd/demo/BUILD.bazel @@ -18,16 +18,30 @@ go_binary( ) platform( - name = "darwin/amd64", + name = "macos", constraint_values = [ - "@platforms//os:darwin", - "@platforms//cpu:amd64", + "@platforms//os:osx", + "@platforms//cpu:x86_64", ], ) +platform( + name = "linux", + constraint_values = [ + "@platforms//os:linux", + ], +) + +go_cross_binary( + name = "darwin_binary", + platform = ":macos", + sdk_version = "1.21.0", + target = "base", +) + go_cross_binary( - name = "macOS", - platform = "@bazel_tools//platforms:osx", + name = "linux_binary", + platform = ":linux", sdk_version = "1.21.0", target = "base", )