| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | #!/bin/bash# Copyright 2016 gRPC authors.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at##     http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.set -excd $(dirname $0)mkdir -p ../../artifacts/# Collect the artifacts built by the previous build stepmkdir -p nativelibscp -r $EXTERNAL_GIT_ROOT/platform={windows,linux,macos}/artifacts/csharp_ext_* nativelibs || true# Collect protoc artifacts built by the previous build stepmkdir -p protoc_pluginscp -r $EXTERNAL_GIT_ROOT/platform={windows,linux,macos}/artifacts/protoc_* protoc_plugins || truedotnet restore Grpc.sln# To be able to build, we also need to put grpc_csharp_ext to its normal locationmkdir -p ../../libs/optcp nativelibs/csharp_ext_linux_x64/libgrpc_csharp_ext.so ../../libs/optdotnet pack --configuration Release Grpc.Core --output ../../../artifactsdotnet pack --configuration Release Grpc.Core.Testing --output ../../../artifactsdotnet pack --configuration Release Grpc.Auth --output ../../../artifactsdotnet pack --configuration Release Grpc.HealthCheck --output ../../../artifactsdotnet pack --configuration Release Grpc.Reflection --output ../../../artifactsnuget pack Grpc.nuspec -Version "1.9.0-dev" -OutputDirectory ../../artifactsnuget pack Grpc.Tools.nuspec -Version "1.9.0-dev" -OutputDirectory ../../artifacts(cd ../../artifacts && zip csharp_nugets_dotnetcli.zip *.nupkg)
 |