-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sh
executable file
·29 lines (24 loc) · 1.08 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
mkdir -p bin;
echo "GOOS and GOARCH setting"
GOOS="$(go env GOOS)"
GOARCH="$(go env GOARCH)"
echo "building teleport..."
cd ./teleport;
GOOS=$GOOS GOARCH=$GOARCH go build -o ../bin/tp_server benchmark.pb.go tp_server.go;
GOOS=$GOOS GOARCH=$GOARCH go build -o ../bin/tp_client benchmark.pb.go tp_client.go;
GOOS=$GOOS GOARCH=$GOARCH go build -o ../bin/tp_mclient benchmark.pb.go tp_mclient.go;
echo "bin/teleport OK"
echo "building grpc..."
cd ../grpc;
GOOS=$GOOS GOARCH=$GOARCH go build -o ../bin/grpc_server grpc_benchmark.pb.go grpc_server.go;
GOOS=$GOOS GOARCH=$GOARCH go build -o ../bin/grpc_client grpc_benchmark.pb.go grpc_client.go;
GOOS=$GOOS GOARCH=$GOARCH go build -o ../bin/grpc_mclient grpc_benchmark.pb.go grpc_mclient.go;
echo "bin/grpc OK"
echo "building rpcx..."
cd ../rpcx;
GOOS=$GOOS GOARCH=$GOARCH go build -o ../bin/rpcx_server benchmark.pb.go rpcx_server.go;
GOOS=$GOOS GOARCH=$GOARCH go build -o ../bin/rpcx_client benchmark.pb.go rpcx_client.go;
GOOS=$GOOS GOARCH=$GOARCH go build -o ../bin/rpcx_mclient benchmark.pb.go rpcx_mclient.go;
echo "bin/rpcx OK"
cd ../;