fix(build): verify build image for releases (#664)

Signed-off-by: Boaz Sade <boaz@dragonflydb.io>

Signed-off-by: Boaz Sade <boaz@dragonflydb.io>
This commit is contained in:
Boaz Sade 2023-01-10 15:46:20 +02:00 committed by GitHub
parent 5ef8454aa7
commit f221c10afb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 3 deletions

2
helio

@ -1 +1 @@
Subproject commit 330a1d47e275543f3d4821a760d8db3e8b961223
Subproject commit 96488a500badf572121c8c681f795eb5a96040b1

View file

@ -1,4 +1,6 @@
#!/bin/sh
#!/usr/bin/env sh
APP_PATH=build-opt/dragonfly
set -e
@ -14,6 +16,18 @@ 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."
exit 1
fi
make package