Skip to content

Commit

Permalink
Merge pull request #1154 from github/fix-build-script
Browse files Browse the repository at this point in the history
Only build RPM and deb packages for amd64
  • Loading branch information
dm-2 authored Jul 20, 2022
2 parents ffe54f4 + 2d3e8d9 commit 7d8e4e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d8e4e8

Please sign in to comment.