Skip to content

Commit 8f361f6

Browse files
authored
Merge pull request #1108 from jecepeda/add-binaries-for-arm64-architectures
Add binaries for arm64 architectures
2 parents 68c614e + 520fd7b commit 8f361f6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ function build {
2323
exit 1
2424
fi
2525

26-
echo "Building ${osname} binary"
26+
echo "Building ${osname}-${GOARCH} binary"
2727
export GOOS
2828
export GOARCH
2929
go build -ldflags "$ldflags" -o $buildpath/$target go/cmd/gh-ost/main.go
3030

3131
if [ $? -ne 0 ]; then
32-
echo "Build failed for ${osname}"
32+
echo "Build failed for ${osname} ${GOARCH}."
3333
exit 1
3434
fi
3535

36-
(cd $buildpath && tar cfz ./gh-ost-binary-${osshort}-${timestamp}.tar.gz $target)
36+
(cd $buildpath && tar cfz ./gh-ost-binary-${osshort}-${GOARCH}-${timestamp}.tar.gz $target)
3737

3838
if [ "$GOOS" == "linux" ] ; then
3939
echo "Creating Distro full packages"
@@ -63,7 +63,9 @@ main() {
6363
mkdir -p ${buildpath}
6464
rm -rf ${buildpath:?}/*
6565
build GNU/Linux linux linux amd64
66+
build GNU/Linux linux linux arm64
6667
build macOS osx darwin amd64
68+
build macOS osx darwin arm64
6769

6870
echo "Binaries found in:"
6971
find $buildpath/gh-ost* -type f -maxdepth 1

0 commit comments

Comments
 (0)