From 36d380057dbc6da92de3e08c12bd8514d8b33d52 Mon Sep 17 00:00:00 2001 From: dm-2 <45519614+dm-2@users.noreply.github.com> Date: Wed, 20 Jul 2022 14:47:51 +0100 Subject: [PATCH] Only build RPM and deb packages for amd64 --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 3a29360..9ff37ea 100755 --- a/build.sh +++ b/build.sh @@ -35,7 +35,8 @@ function build { (cd $buildpath && tar cfz ./gh-ost-binary-${osshort}-${GOARCH}-${timestamp}.tar.gz $target) - if [ "$GOOS" == "linux" ] ; then + # build RPM and deb for Linux, x86-64 only + if [ "$GOOS" == "linux" ] && [ "$GOARCH" == "amd64" ] ; then echo "Creating Distro full packages" builddir=$(setuptree) cp $buildpath/$target $builddir/gh-ost/usr/bin