Skip to content

Commit

Permalink
fix grpc cares dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
baoleai committed Oct 9, 2022
1 parent 6569610 commit f6f9070
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/upload_gl_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ else
pyabis=$(echo $PYABI | tr ":" "\n")
for abi in $pyabis; do
docker run --rm -e "PYABI=$abi" -e "GIT_TAG=$GIT_TAG" -v `pwd`:/io \
$DOCKER_IMAGE $PRE_CMD bash -c "chmod +x /io/.github/workflows/scripts/build_gl.sh; git config --global --add safe.directory /io; /io/.github/workflows/scripts/build_gl.sh"
$DOCKER_IMAGE $PRE_CMD bash -c "chmod +x /io/.github/workflows/scripts/build_gl.sh; git config --global --add safe.directory '*'; /io/.github/workflows/scripts/build_gl.sh"
sudo chown -R $(id -u):$(id -g) ./graphlearn/*
mv graphlearn/dist/*.whl /tmp
done
Expand Down
2 changes: 1 addition & 1 deletion graphlearn/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ debian_packages=(
libopenblas-dev
libgflags-dev
libssl-dev
libc-ares-dev
zlib1g-dev
)

if [ "${build_hiactor}" = true ] ; then
debian_packages=(
"${debian_packages[@]}"
# hiactor dependencies
libc-ares-dev
ragel
libhwloc-dev
libnuma-dev
Expand Down
4 changes: 2 additions & 2 deletions third_party/grpc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ code_src=${script_dir}/grpc
install_prefix=${script_dir}/build
cores=$(cat < /proc/cpuinfo | grep -c "processor")

cd "${code_src}" && git submodule update --init third_party/protobuf third_party/abseil-cpp third_party/re2 && \
cd "${code_src}" && git submodule update --init third_party/protobuf third_party/abseil-cpp third_party/re2 third_party/cares && \
mkdir -p cmake/build && cd cmake/build && \
cmake -DCMAKE_CXX_FLAGS="-fPIC" \
-DCMAKE_BUILD_TYPE=Release \
-DgRPC_INSTALL=ON \
-DCMAKE_INSTALL_PREFIX="${install_prefix}" \
-DgRPC_BUILD_TESTS=OFF \
-DgRPC_CARES_PROVIDER=package \
-DgRPC_SSL_PROVIDER=package \
-DgRPC_ZLIB_PROVIDER=package \
../.. && \
make -j"${cores}" && make install &&
cp -r "${code_src}"/third_party/abseil-cpp/absl "${install_prefix}"/include
cp -r "${code_src}"/third_party/cares/cares "${install_prefix}"/include

0 comments on commit f6f9070

Please sign in to comment.