mirror of
https://github.com/openai/codex.git
synced 2026-04-27 09:51:03 +03:00
51 lines
1.9 KiB
Python
51 lines
1.9 KiB
Python
# We mark the local platform as glibc-compatible so that rust can grab a toolchain for us.
|
|
# TODO(zbarsky): Upstream a better libc constraint into rules_rust.
|
|
# We only enable this on linux though for sanity, and because it breaks remote execution.
|
|
platform(
|
|
name = "local",
|
|
constraint_values = [
|
|
"@toolchains_llvm_bootstrapped//constraints/libc:gnu.2.28",
|
|
],
|
|
parents = [
|
|
"@platforms//host",
|
|
],
|
|
)
|
|
|
|
platform(
|
|
name = "rbe",
|
|
constraint_values = [
|
|
"@platforms//cpu:x86_64",
|
|
"@platforms//os:linux",
|
|
"@bazel_tools//tools/cpp:clang",
|
|
"@toolchains_llvm_bootstrapped//constraints/libc:gnu.2.28",
|
|
],
|
|
exec_properties = {
|
|
# Ubuntu-based image that includes git, python3, dotslash, and other
|
|
# tools that various integration tests need.
|
|
# Verify at https://hub.docker.com/layers/mbolin491/codex-bazel/latest/images/sha256:8c9ff94187ea7c08a31e9a81f5fe8046ea3972a6768983c955c4079fa30567fb
|
|
"container-image": "docker://docker.io/mbolin491/codex-bazel@sha256:8c9ff94187ea7c08a31e9a81f5fe8046ea3972a6768983c955c4079fa30567fb",
|
|
"Arch": "amd64",
|
|
"OSFamily": "Linux",
|
|
},
|
|
)
|
|
|
|
platform(
|
|
name = "rbe_arm64",
|
|
constraint_values = [
|
|
"@platforms//cpu:aarch64",
|
|
"@platforms//os:linux",
|
|
"@bazel_tools//tools/cpp:clang",
|
|
"@toolchains_llvm_bootstrapped//constraints/libc:gnu.2.28",
|
|
],
|
|
exec_properties = {
|
|
# Ubuntu-based image that includes git, python3, dotslash, and other
|
|
# tools that various integration tests need.
|
|
# Verify at https://hub.docker.com/layers/mbolin491/codex-bazel/latest/images/sha256:ad9506086215fccfc66ed8d2be87847324be56790ae6a1964c241c28b77ef141
|
|
"container-image": "docker://docker.io/mbolin491/codex-bazel@sha256:ad9506086215fccfc66ed8d2be87847324be56790ae6a1964c241c28b77ef141",
|
|
"Arch": "arm64",
|
|
"OSFamily": "Linux",
|
|
},
|
|
)
|
|
|
|
exports_files(["AGENTS.md"])
|