mirror of https://github.com/grpc/grpc-node.git
17 lines
463 B
Bash
Executable File
17 lines
463 B
Bash
Executable File
set -e
|
|
cd $(dirname $0)/../..
|
|
base_dir=$(pwd)
|
|
|
|
OS=$(uname)
|
|
|
|
git submodule update --init --recursive
|
|
|
|
case $OS in
|
|
Linux)
|
|
docker build -t kokoro-native-image tools/release/native
|
|
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $base_dir:$base_dir -e ARTIFACTS_OUT=$base_dir/artifacts kokoro-native-image $base_dir/packages/grpc-tools/build_binaries.sh
|
|
;;
|
|
Darwin)
|
|
ARTIFACTS_OUT=$base_dir/artifacts ./packages/grpc-tools/build_binaries.sh
|
|
;;
|
|
esac |