mirror of
https://github.com/openai/codex.git
synced 2026-03-05 21:45:28 +03:00
As explained in `codex-rs/core/BUILD.bazel`, including the repo's own `AGENTS.md` is a hack to get some tests passing. We should fix this properly, but I wanted to put stake in the ground ASAP to get `just bazel-remote-test` working and then add a job to `bazel.yml` to ensure it keeps working.
32 lines
1.2 KiB
Python
32 lines
1.2 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",
|
|
"OSFamily": "Linux",
|
|
},
|
|
)
|
|
|
|
exports_files(["AGENTS.md"])
|