Skip to content

Commit e196c0c

Browse files
authored
release cicd: strip self-extracting binaries manually
1 parent 4d187a3 commit e196c0c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/sign_and_release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,14 @@ jobs:
222222
echo "Failed to download clickhouse binary"
223223
exit 1
224224
fi
225+
226+
if [ "$MAJOR_VERSION" -ge 25 ]; then
227+
echo "Strip the non-extracted binary..."
228+
strip clickhouse -o clickhouse-stripped
229+
aws s3 cp clickhouse-stripped ${SRC_URL}/${ARM_PATH}"
230+
rm clickhouse-stripped
231+
fi
232+
225233
chmod +x clickhouse
226234
227235
echo "Running clickhouse binary..."
@@ -296,6 +304,14 @@ jobs:
296304
echo "Failed to download clickhouse binary"
297305
exit 1
298306
fi
307+
308+
if [ "$MAJOR_VERSION" -ge 25 ]; then
309+
echo "Strip the non-extracted binary..."
310+
strip clickhouse -o clickhouse-stripped
311+
aws s3 cp clickhouse-stripped "${DEST_URL}/packages/AMD_PACKAGES/amd64-bin/"
312+
rm clickhouse-stripped
313+
fi
314+
299315
chmod +x clickhouse
300316
301317
echo "Running clickhouse binary..."

0 commit comments

Comments
 (0)