bazel-lib/platforms/BUILD.bazel

39 lines
920 B
Python
Raw Normal View History

load("//platforms/config:defs.bzl", "platforms")
[platform(
name = "{}_{}".format(
p.os,
p.cpu,
),
constraint_values = [
"@platforms//os:{}".format(p.os),
"@platforms//cpu:{}".format(p.cpu),
],
visibility = ["//visibility:public"],
) for p in platforms]
alias(
name = "linux_amd64",
actual = ":linux_x86_64",
visibility = ["//visibility:public"],
)
alias(
name = "linux_arm64",
actual = ":linux_aarch64",
visibility = ["//visibility:public"],
)
platform(
name = "x86_64_linux_remote",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
exec_properties = {
"OSFamily": "Linux",
"container-image": "docker://public.ecr.aws/docker/library/python@sha256:247105bbbe7f7afc7c12ac893be65b5a32951c1d0276392dc2bf09861ba288a6",
},
visibility = ["//visibility:public"],
)