# The ci.bazelrc is an untracked file that can be generated by hack/dockerized or automated/test.sh scripts as part of CI
try-import ci.bazelrc

# Set common values for all builds
build --workspace_status_command=./hack/print-workspace-status.sh --host_force_python=PY3
run --workspace_status_command=./hack/print-workspace-status.sh --host_force_python=PY3
test --workspace_status_command=./hack/print-workspace-status.sh --host_force_python=PY3

# Bazel has a rule of precedence so we can specify / overwrite architecture specific commands if needed
build:x86_64 --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo
run:x86_64 --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo
test:x86_64 --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo

build:ppc64le --platforms=@io_bazel_rules_go//go/toolchain:linux_ppc64le_cgo
run:ppc64le --platforms=@io_bazel_rules_go//go/toolchain:linux_ppc64le_cgo
test:ppc64le --platforms=@io_bazel_rules_go//go/toolchain:linux_ppc64le_cgo --host_javabase=@local_jdk//:jdk

build --define gotags=selinux
