ci: Notarize in parallel (different flavor) (#41392)

Release Notes:

- N/A

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Ben Kunkle <ben@zed.dev>
Co-authored-by: Conrad Irwin <conrad@zed.dev>
This commit is contained in:
Piotr Osiewicz
2025-10-28 16:18:17 -06:00
committed by GitHub
co-authored by Conrad Irwin Ben Kunkle Conrad Irwin
parent b9eafb80fd
commit 4cc6d6a398
7 changed files with 197 additions and 137 deletions
+25 -15
View File
@@ -14,20 +14,31 @@ is_allowed_target() {
return 1
}
if [[ -n "${1:-}" ]]; then
if is_allowed_target "$1"; then
target="$1"
else
echo "Error: Target '$1' is not allowed"
echo "Usage: $0 [${allowed_targets[*]}]"
exit 1
fi
allowed_arch=("x86_64" "aarch64")
is_allowed_arch() {
for val in "${allowed_arch[@]}"; do
if [[ "$1" == "$val" ]]; then
return 0
fi
done
return 1
}
if is_allowed_target "$1"; then
target="$1"
else
echo "Error: Target is not specified"
echo "Usage: $0 [${allowed_targets[*]}]"
exit 1
echo "Error: Target '$1' is not allowed"
echo "Usage: $0 [${allowed_targets[*]}] {arch}"
exit 1
fi
echo "Uploading nightly for target: $target"
if is_allowed_arch "$2"; then
arch="$2"
else
echo "Error: Arch '$2' is not allowed"
echo "Usage: $0 $1 [${allowed_arch[*]}]"
exit 1
fi
echo "Uploading nightly for target: $target $arch"
bucket_name="zed-nightly-host"
@@ -41,10 +52,9 @@ done
case "$target" in
macos)
upload_to_blob_store $bucket_name "target/aarch64-apple-darwin/release/Zed.dmg" "nightly/Zed-aarch64.dmg"
upload_to_blob_store $bucket_name "target/x86_64-apple-darwin/release/Zed.dmg" "nightly/Zed-x86_64.dmg"
upload_to_blob_store $bucket_name "target/$arch-apple-darwin/release/Zed.dmg" "nightly/Zed-$arch.dmg"
upload_to_blob_store $bucket_name "target/latest-sha" "nightly/latest-sha"
rm -f "target/aarch64-apple-darwin/release/Zed.dmg" "target/x86_64-apple-darwin/release/Zed.dmg" "target/release/Zed.dmg"
rm -f "target/$arch-apple-darwin/release/Zed.dmg" "target/release/Zed.dmg"
rm -f "target/latest-sha"
;;
linux-targz)