Pick aarch64 binary when running on arm64 linux
Fixes
@@ -1637,6 +1637,9 @@ def download_bazelci_agent(dest_dir, version):
postfix = "aarch64-apple-darwin"
else:
postfix = "x86_64-apple-darwin"
+ else:
+ if platform_module.machine() == "aarch64":
+ postfix = "aarch64-unknown-linux-musl"
else:
postfix = "x86_64-unknown-linux-musl"
