diff --git a/interop/bin/client_darwin_amd64 b/interop/bin/client_darwin_amd64 index e41c77f..7e58e1b 100755 Binary files a/interop/bin/client_darwin_amd64 and b/interop/bin/client_darwin_amd64 differ diff --git a/interop/bin/client_linux_amd64 b/interop/bin/client_linux_amd64 index e3b5644..f15a88c 100755 Binary files a/interop/bin/client_linux_amd64 and b/interop/bin/client_linux_amd64 differ diff --git a/interop/bin/client_windows_amd64.exe b/interop/bin/client_windows_amd64.exe index 4db1f49..e63934b 100755 Binary files a/interop/bin/client_windows_amd64.exe and b/interop/bin/client_windows_amd64.exe differ diff --git a/interop/bin/server_darwin_amd64 b/interop/bin/server_darwin_amd64 index 3719e68..f9f9afd 100755 Binary files a/interop/bin/server_darwin_amd64 and b/interop/bin/server_darwin_amd64 differ diff --git a/interop/bin/server_linux_amd64 b/interop/bin/server_linux_amd64 index 1e5584a..12f06a6 100755 Binary files a/interop/bin/server_linux_amd64 and b/interop/bin/server_linux_amd64 differ diff --git a/interop/bin/server_windows_amd64.exe b/interop/bin/server_windows_amd64.exe index b532bb9..c464233 100755 Binary files a/interop/bin/server_windows_amd64.exe and b/interop/bin/server_windows_amd64.exe differ diff --git a/interop/update_binaries.sh b/interop/update_binaries.sh new file mode 100755 index 0000000..79d3ba4 --- /dev/null +++ b/interop/update_binaries.sh @@ -0,0 +1,33 @@ +set -e + +# This script updates server and client go binaries for interop tests. +# It clones grpc-go, compiles interop clients and servers for linux, windows +# and macos and finally deletes the cloned repo. +# +# It is not meant to be executed on every test run or CI and should run from +# inside tonic/interop. + +command -v go >/dev/null 2>&1 || { + echo >&2 "go executable is not available" + exit 1 +} + +if [ ! -d "./grpc-go" ]; then + git clone https://github.com/grpc/grpc-go.git +fi + +cd grpc-go + +PLATFORMS="darwin linux windows" +ROLES="client server" +ARCH=amd64 + +for ROLE in $ROLES; do + for OS in $PLATFORMS; do + FILENAME="${ROLE}_${OS}_${ARCH}" + if [[ "${OS}" == "windows" ]]; then FILENAME="${FILENAME}.exe"; fi + GOOS=$OS GOARCH=$ARCH go build -o "../bin/$FILENAME" "./interop/$ROLE" + done +done + +rm -rf ../grpc-go \ No newline at end of file