forked from alphauslabs/blueapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·28 lines (25 loc) · 1.01 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
# Compile for blue-sdk-go.
echo "Compiling proto files..." && buf generate
# Compile services for blue-sdk-python; with grpc.
python3 -m grpc_tools.protoc -I . --python_out=./generated/py --grpc_python_out=./generated/py \
./org/v1/*.proto \
./kvstore/v1/*.proto \
./iam/v1/*.proto \
./admin/v1/*.proto \
./cost/v1/*.proto \
./billing/v1/*.proto \
./operations/v1/*.proto \
./preferences/v1/*.proto
# Compile ./api/* for blue-sdk-python; without grpc.
python3 -m grpc_tools.protoc -I . --python_out=./generated/py \
$(for v in $(find ./api -type d); do echo -n "$v/*.proto "; done)
echo "Generating OpenAPI docs..."
protoc -I . --openapiv2_out ./openapiv2 --openapiv2_opt logtostderr=true --openapiv2_opt allow_merge=true \
./org/v1/*.proto \
./kvstore/v1/*.proto \
./iam/v1/*.proto \
./admin/v1/*.proto \
./cost/v1/*.proto \
./billing/v1/*.proto \
./operations/v1/*.proto \
./preferences/v1/*.proto