diff --git a/.github/workflows/Dockerfile.bazel b/.github/workflows/Dockerfile.bazel index 0bfba60b83..51c199dcc3 100644 --- a/.github/workflows/Dockerfile.bazel +++ b/.github/workflows/Dockerfile.bazel @@ -4,7 +4,7 @@ FROM ubuntu:24.04 # initial debugging, but we should publish to a more proper location. # # docker buildx create --use -# docker buildx build --platform linux/amd64 -f .github/workflows/Dockerfile.bazel -t mbolin491/codex-bazel:latest --push . +# docker buildx build --platform linux/amd64,linux/arm64 -f .github/workflows/Dockerfile.bazel -t mbolin491/codex-bazel:latest --push . RUN apt-get update && \ apt-get install -y --no-install-recommends \ diff --git a/BUILD.bazel b/BUILD.bazel index 372a3aee7c..f427ed00ae 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -28,4 +28,21 @@ platform( }, ) +platform( + name = "rbe-arm64", + constraint_values = [ + "@platforms//cpu:arm64", + "@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", + "OSFamily": "Linux", + }, +) + exports_files(["AGENTS.md"])