This is an automated email from the ASF dual-hosted git repository. ningjiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-mesher.git
The following commit(s) were added to refs/heads/master by this push: new 6c74097 support arm64 new 2afbd0a Merge pull request #69 from tianxiaoliang/master 6c74097 is described below commit 6c74097d045964e6102f07326c9291d9b6481898 Author: tian <xiaoliang.t...@gmail.com> AuthorDate: Fri Aug 30 15:28:47 2019 +0800 support arm64 --- build/build_proxy.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/build/build_proxy.sh b/build/build_proxy.sh index 1c69967..a7c670e 100755 --- a/build/build_proxy.sh +++ b/build/build_proxy.sh @@ -15,8 +15,6 @@ echo "GOPATH is "${GOPATH} if [ "$VERSION" == "" ]; then echo "using latest code" VERSION="latest" -else - git checkout $VERSION fi release_dir=$PROJECT_DIR/release @@ -25,6 +23,7 @@ cd $PROJECT_DIR GO111MODULE=on go mod download GO111MODULE=on go mod vendor go build -a github.com/apache/servicecomb-mesher/cmd/mesher + cp -r $PROJECT_DIR/licenses $release_dir cp -r $PROJECT_DIR/conf $release_dir cp $PROJECT_DIR/start.sh $release_dir @@ -48,16 +47,19 @@ cd $release_dir chmod +x start.sh mesher -pkg_name="mesher-$VERSION-linux-amd64.tar.gz" - -tar zcvf $pkg_name licenses conf mesher VERSION -tar zcvf mesher.tar.gz licenses conf mesher VERSION start.sh - - +x86_pkg_name="mesher-$VERSION-linux-amd64.tar.gz" +arm_pkg_name="mesher-$VERSION-linux-arm64.tar.gz" +#x86 release +tar zcvf $x86_pkg_name licenses conf mesher VERSION +tar zcvf mesher.tar.gz licenses conf mesher VERSION start.sh # for docker image echo "building docker..." cd ${release_dir} cp ${PROJECT_DIR}/build/docker/proxy/Dockerfile ./ -sudo docker build -t servicecomb/mesher-sidecar:${VERSION} . \ No newline at end of file +sudo docker build -t servicecomb/mesher-sidecar:${VERSION} . + +# arm release +GOARCH=arm64 go build -a github.com/apache/servicecomb-mesher/cmd/mesher +tar zcvf $arm_pkg_name licenses conf mesher VERSION \ No newline at end of file