Skip to content

Commit 6b8f026

Browse files
jackblack369HeChangHaoGary
authored andcommitted
[ci][docker] Change cmake build type to RelWithDebInfo
1 parent 80891b9 commit 6b8f026

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/ci_rocky8.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
11-
BUILD_TYPE: Release
11+
BUILD_TYPE: RelWithDebInfo
1212

1313
jobs:
1414
build:
@@ -56,8 +56,8 @@ jobs:
5656
git config --global --add safe.directory /opt/dingo-store
5757
git submodule sync --recursive && git submodule update --init --recursive --progress
5858
source /opt/intel/oneapi/setvars.sh
59-
cmake -B ./build -DCMAKE_BUILD_TYPE=Release -DTHIRD_PARTY_BUILD_TYPE=Release -DWITH_DISKANN=ON -DWITH_MKL=ON -DDISKANN_DEPEND_ON_SYSTEM=OFF -DBUILD_UNIT_TESTS=OFF -DBRPC_ENABLE_CPU_PROFILER=OFF -DDINGO_BUILD_STATIC=OFF -DLINK_TCMALLOC=ON -DCMAKE_CXX_STANDARD=23 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
60-
cmake --build ./build --config Release
59+
cmake -B ./build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DTHIRD_PARTY_BUILD_TYPE=RelWithDebInfo -DWITH_DISKANN=ON -DWITH_MKL=ON -DDISKANN_DEPEND_ON_SYSTEM=OFF -DBUILD_UNIT_TESTS=OFF -DBRPC_ENABLE_CPU_PROFILER=OFF -DDINGO_BUILD_STATIC=OFF -DLINK_TCMALLOC=ON -DCMAKE_CXX_STANDARD=23 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
60+
cmake --build ./build
6161
6262
# check if the build is successful
6363
if [ $? -ne 0 ]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,4 @@ contrib/xdprocks/
7878
# docker
7979
docker/dingo-store.tar.gz
8080
docker/rocky8/l_BaseKit_p_2024.1.0.596_offline.sh
81+
docker/rocky8/rust-1.78.0-x86_64-unknown-linux-gnu.tar.xz

docker/rocky8/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ RUN dnf update -y \
2929
# RUN sh rustup-init.sh -y
3030
RUN wget https://static.rust-lang.org/dist/rust-1.78.0-x86_64-unknown-linux-gnu.tar.xz && xz -d rust-1.78.0-x86_64-unknown-linux-gnu.tar.xz && tar -xf rust-1.78.0-x86_64-unknown-linux-gnu.tar && cd rust-1.78.0-x86_64-unknown-linux-gnu && sh install.sh --prefix=/opt/rust/ && cd .. && rm -rf rust-1.78.0-x86_64-unknown-linux-gnu*
3131

32-
# install mkl
32+
# install mkl online
3333
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/fdc7a2bc-b7a8-47eb-8876-de6201297144/l_BaseKit_p_2024.1.0.596_offline.sh && bash l_BaseKit_p_2024.1.0.596_offline.sh -a --silent --cli --eula accept && rm -rf l_BaseKit_p_2024.1.0.596_offline.sh
34+
35+
# install mkl offline
3436
#COPY ./l_BaseKit_p_2024.1.0.596_offline.sh ./
35-
RUN bash l_BaseKit_p_2024.1.0.596_offline.sh -a --silent --cli --eula accept && rm -rf l_BaseKit_p_2024.1.0.596_offline.sh
37+
#RUN bash l_BaseKit_p_2024.1.0.596_offline.sh -a --silent --cli --eula accept && rm -rf l_BaseKit_p_2024.1.0.596_offline.sh
3638

3739
# config aio (sysctl commands cannot be executed during Docker image build time)
3840
# RUN sysctl -w fs.aio-max-nr=1048576 && sysctl -w fs.aio-nr=524288

0 commit comments

Comments
 (0)