SERVER-138552ClosedDuplicate
Use target architecture in cross-compiled archive directory names
Cross-compiled distribution archives currently put the build host architecture in their extraction directory. An s390x build on ARM64 therefore extracts into {{mongodb-linux-aarch64-...}} even though its binaries target s390x. Use the target platform's OS and CPU constraints in {{bazel/install_rules/archive_name.bzl}}, shared by the {{dist}} definition and packaging regression tests. Preserve the existing distribution architecture spellings and edition, distro, and version suffixes. Add tar/zip