Skip to content

Commit b77fe66

Browse files
authored
feat: add grpc-client-nginx-module for the CI (#231)
Currently, we only build it in the CI. Signed-off-by: spacewander <[email protected]>
1 parent ab0325b commit b77fe66

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build-apisix-base.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ set -euo pipefail
33
set -x
44

55
version=${version:-0.0.0}
6+
grpc_client_nginx_module_ver="main"
67

78
if ([ $# -gt 0 ] && [ "$1" == "latest" ]) || [ "$version" == "latest" ]; then
89
ngx_multi_upstream_module_ver="master"
910
mod_dubbo_ver="master"
1011
apisix_nginx_module_ver="main"
1112
wasm_nginx_module_ver="main"
1213
lua_var_nginx_module_ver="master"
13-
debug_args="--with-debug"
14+
debug_args="--with-debug --add-module=../grpc-client-nginx-module-${grpc_client_nginx_module_ver} "
1415
OR_PREFIX=${OR_PREFIX:="/usr/local/openresty-debug"}
1516
else
1617
ngx_multi_upstream_module_ver="1.1.1"
@@ -71,6 +72,14 @@ else
7172
lua-var-nginx-module-${lua_var_nginx_module_ver}
7273
fi
7374

75+
if [ "$repo" == grpc-client-nginx-module ]; then
76+
cp -r "$prev_workdir" ./grpc-client-nginx-module-${grpc_client_nginx_module_ver}
77+
else
78+
git clone --depth=1 -b $grpc_client_nginx_module_ver \
79+
https://github.com/api7/grpc-client-nginx-module \
80+
grpc-client-nginx-module-${grpc_client_nginx_module_ver}
81+
fi
82+
7483
cd ngx_multi_upstream_module-${ngx_multi_upstream_module_ver} || exit 1
7584
./patch.sh ../openresty-${or_ver}
7685
cd ..

0 commit comments

Comments
 (0)