Skip to content

Commit

Permalink
Separate zips for mac arm/intel
Browse files Browse the repository at this point in the history
  • Loading branch information
xpqz committed Dec 17, 2024
1 parent 2e3f156 commit d363b5b
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions CI/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,26 @@ ln -s $BUILD_NUMBER /devt/builds/$JOB_NAME/latest
for dir in /devt/builds/$JOB_NAME/latest/*; do
if [ -d "$dir" ]; then
dir_name=$(basename "$dir")
zip_file="/devt/builds/$JOB_NAME/$BUILD_NUMBER/dyalog-kafka.${dir_name}.${VERSION}.zip"
echo "Creating zip file: $zip_file"
pushd /devt/builds/$JOB_NAME/latest >/dev/null
zip -r "$zip_file" "$dir_name" || true # Continue even if zip fails
popd >/dev/null

if [ "$dir_name" = "mac" ]; then
# Special handling for mac directory - create separate zips for each architecture
pushd /devt/builds/$JOB_NAME/latest/mac >/dev/null
for arch in arm64 x64; do
if [ -d "$arch" ]; then
zip_file="/devt/builds/$JOB_NAME/$BUILD_NUMBER/dyalog-kafka.mac-${arch}-${VERSION}.zip"
echo "Creating zip file: $zip_file"
zip -r "$zip_file" "$arch" || true
fi
done
popd >/dev/null
else
zip_file="/devt/builds/$JOB_NAME/$BUILD_NUMBER/dyalog-kafka.${dir_name}.${VERSION}.zip"
echo "Creating zip file: $zip_file"

pushd /devt/builds/$JOB_NAME/latest >/dev/null
zip -r "$zip_file" "$dir_name" || true
popd >/dev/null
fi
fi
done

Expand Down

0 comments on commit d363b5b

Please sign in to comment.