Compile grpc-swift plugins in Dockerfile
This commit is contained in:
10
build_grpc_swift_plugins_static.sh
Normal file
10
build_grpc_swift_plugins_static.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
SWIFT_BUILD_PATH=./.build
|
||||
|
||||
PROTOC_GEN_SWIFT=${SWIFT_BUILD_PATH}/release/protoc-gen-swift
|
||||
PROTOC_GEN_GRPC_SWIFT=${SWIFT_BUILD_PATH}/release/protoc-gen-grpc-swift
|
||||
|
||||
MAIN_SCRIPT="swift build --configuration=release --build-path=${SWIFT_BUILD_PATH} -Xswiftc -static-executable"
|
||||
${MAIN_SCRIPT} --product protoc-gen-swift
|
||||
${MAIN_SCRIPT} --product protoc-gen-grpc-swift
|
||||
cp ${SWIFT_BUILD_PATH}/release/protoc-gen-swift .
|
||||
cp ${SWIFT_BUILD_PATH}/release/protoc-gen-grpc-swift .
|
||||
Reference in New Issue
Block a user