Skip to content

Commit

Permalink
force install c-ares from source
Browse files Browse the repository at this point in the history
  • Loading branch information
yejunjin committed Aug 27, 2024
1 parent afa12c3 commit 2e7ea7b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ jobs:
runs-on: [self-hosted, Linux, "${{ matrix.arch }}"]
container:
image: registry-1.docker.io/dashinfer/${{ matrix.image }}
env:
# force use node16 instead of node20
# otherwise it may cause GLIBCXX_2.27 not found
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
defaults:
run:
shell: bash -l {0}
Expand All @@ -76,7 +80,7 @@ jobs:
source /opt/rh/devtoolset-7/enable
source activate ds_py
AS_RELEASE_VERSION=$VERSION_NUMBER \
AS_PLATFORM="x86" \
AS_PLATFORM=$( [[ "${{ matrix.arch }}" = "X64" ]] && echo "x86" || echo "armclang" ) \
AS_BUILD_PACKAGE=ON \
bash build.sh
Expand All @@ -100,6 +104,10 @@ jobs:
runs-on: [self-hosted, Linux, "${{ matrix.arch }}"]
container:
image: registry-1.docker.io/dashinfer/${{ matrix.image }}
env:
# force use node16 instead of node20
# otherwise it may cause GLIBCXX_2.27 not found
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
steps:
- name: Check out code
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ if [ ! -d "./build" ]; then
else
conan profile update settings.compiler.libcxx=libstdc++ cxx11abi
fi
conan install ../conan/conanfile_arm.txt -pr cxx11abi -b missing -b protobuf -b gtest -b openssl -b grpc -b glog -b abseil
conan install ../conan/conanfile_arm.txt -pr cxx11abi -b missing -b protobuf -b gtest -b openssl -b grpc -b glog -b abseil -b c-ares
else
conan profile new cxx11abi --detect --force
if [ "$enable_glibcxx11_abi" == "ON" ]; then
conan profile update settings.compiler.libcxx=libstdc++11 cxx11abi
else
conan profile update settings.compiler.libcxx=libstdc++ cxx11abi
fi
conan install ../conan/conanfile.txt -pr cxx11abi -b missing -b protobuf -b gtest -b openssl -b grpc -b glog -b abseil
conan install ../conan/conanfile.txt -pr cxx11abi -b missing -b protobuf -b gtest -b openssl -b grpc -b glog -b abseil -b c-ares
fi
cd ../
fi
Expand Down
4 changes: 2 additions & 2 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ def os_script_exec(cmd: str):
"cp -f {{cwd_parent}}/conan/conanprofile_armclang.aarch64 ~/.conan/profiles/cxx11abi\n" +
"cp -r {{cwd_parent}}/conan/settings_arm.yml ~/.conan/settings.yml\n" +
"conan profile update settings.compiler.libcxx={{libcxx_setting}} cxx11abi\n" +
"conan install {{cwd_parent}}/conan/conanfile_arm.txt -pr cxx11abi -b missing -b protobuf -b gtest -b openssl -b grpc -b glog -b abseil"
"conan install {{cwd_parent}}/conan/conanfile_arm.txt -pr cxx11abi -b missing -b protobuf -b gtest -b openssl -b grpc -b glog -b abseil -b c-ares"
).render(libcxx_setting=libcxx_setting, cwd_parent=str(cwd.parent))

conan_install_other = Template(
"conan profile new cxx11abi --detect --force\n" +
"conan profile update settings.compiler.libcxx={{libcxx_setting}} cxx11abi\n" +
"conan install {{cwd_parent}}/conan/conanfile.txt -pr cxx11abi -b missing -b protobuf -b gtest -b openssl -b grpc -b glog -b abseil"
"conan install {{cwd_parent}}/conan/conanfile.txt -pr cxx11abi -b missing -b protobuf -b gtest -b openssl -b grpc -b glog -b abseil -b c-ares"
).render(libcxx_setting=libcxx_setting, cwd_parent=str(cwd.parent))

conan_install_cmd = conan_install_other
Expand Down

0 comments on commit 2e7ea7b

Please sign in to comment.