Skip to content

Commit

Permalink
fix(build): verify build image for releases
Browse files Browse the repository at this point in the history
Signed-off-by: Boaz Sade <[email protected]>
  • Loading branch information
boazsade committed Jan 10, 2023
1 parent 5ef8454 commit 0eee9e0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helio
Submodule helio updated 1 files
+12 −3 util/dns_resolve.cc
20 changes: 18 additions & 2 deletions tools/release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
#!/usr/bin/env sh

APP_PATH=build-opt/dragonfly

set -e

Expand All @@ -14,6 +16,20 @@ pwd

make HELIO_RELEASE=y release

build-opt/dragonfly --version
if ! [ -f ${APP_PATH} ]; then
echo "ERROR"
echo "Failed to generate new dragonfly binary."
exit 1
fi

${APP_PATH} --version

if readelf -a ${APP_PATH} | grep GLIBC_PRIVATE >/dev/null 2>&1 ; then
echo "ERROR"
echo "The generated binary contain invalid GLIBC version entries."
echo "This will failed to run in same cases. Please fix this issue"
exit 1
fi

make package
exit $?

0 comments on commit 0eee9e0

Please sign in to comment.