summaryrefslogtreecommitdiffhomepage
path: root/tools/make_release.sh
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2021-01-08 18:01:05 -0800
committergVisor bot <gvisor-bot@google.com>2021-01-08 18:03:17 -0800
commit0c99ab70905fa4eaf8bc7b0ca846e12d7bbc6e39 (patch)
tree426d2500979192e3d32778bdb492f54119303856 /tools/make_release.sh
parent70de1db82e9d3b2c4491031f1f8a9c5a5830c7c0 (diff)
Support releasing aarch64 builds.
This change works around an issue in rules_pkg, described here: https://github.com/bazelbuild/rules_pkg/pull/263 PiperOrigin-RevId: 350869030
Diffstat (limited to 'tools/make_release.sh')
-rwxr-xr-xtools/make_release.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/make_release.sh b/tools/make_release.sh
index 9137dd9bb..10742dd54 100755
--- a/tools/make_release.sh
+++ b/tools/make_release.sh
@@ -38,12 +38,13 @@ done
# install_raw installs raw artifacts.
install_raw() {
- mkdir -p "${root}/$1"
for binary in "${binaries[@]}"; do
- # Copy the raw file & generate a sha512sum.
+ # Copy the raw file & generate a sha512sum, sorted by architecture.
+ arch=$(file "${binary}" | cut -d',' -f2 | awk '{print $NF}' | tr '-' '_')
name=$(basename "${binary}")
- cp -f "${binary}" "${root}/$1"
- (cd "${root}/$1" && sha512sum "${name}" > "${name}.sha512")
+ mkdir -p "${root}/$1/${arch}"
+ cp -f "${binary}" "${root}/$1/${arch}"
+ (cd "${root}/$1/${arch}" && sha512sum "${name}" > "${name}.sha512")
done
}