Skip to content

Commit 63c171d

Browse files
jecepedadm-2
authored andcommitted
Add binaries for arm64 architectures
1 parent 869ed92 commit 63c171d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.sh

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

26-
# TODO: remove GO111MODULE once gh-ost uses Go modules
27-
echo "Building ${osname} binary"
26+
echo "Building ${osname}-${GOARCH} binary"
2827
export GOOS
2928
export GOARCH
3029
GO111MODULE=off go build -ldflags "$ldflags" -o $buildpath/$target go/cmd/gh-ost/main.go
3130

3231
if [ $? -ne 0 ]; then
33-
echo "Build failed for ${osname}"
32+
echo "Build failed for ${osname} ${GOARCH}."
3433
exit 1
3534
fi
3635

37-
(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)
3837

3938
if [ "$GOOS" == "linux" ] ; then
4039
echo "Creating Distro full packages"
@@ -64,7 +63,9 @@ main() {
6463
mkdir -p ${buildpath}
6564
rm -rf ${buildpath:?}/*
6665
build GNU/Linux linux linux amd64
66+
build GNU/Linux linux linux arm64
6767
build macOS osx darwin amd64
68+
build macOS osx darwin arm64
6869

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

0 commit comments

Comments
 (0)