Skip to content

Commit 3640357

Browse files
authored
Sanitizers will use RelWithDebInfo build type instead of Release (#25108)
In order to fully use sanitizers we need debug symbols during test execution phase. For that reason I propose to change OpenVINO build type form Release to RelWithDebInfo.
1 parent 8f355c0 commit 3640357

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/linux_sanitizers.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
# SANITIZER_CMAKE_OPTION: '-DENABLE_THREAD_SANITIZER=ON'
4242
env:
4343
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
44-
CMAKE_BUILD_TYPE: 'Release'
45-
CMAKE_GENERATOR: 'Ninja Multi-Config'
44+
CMAKE_BUILD_TYPE: 'RelWithDebInfo'
45+
CMAKE_GENERATOR: 'Ninja'
4646
GITHUB_WORKSPACE: '/__w/openvino/openvino'
4747
OPENVINO_REPO: /__w/openvino/openvino/openvino
4848
OPENVINO_CONTRIB_REPO: /__w/openvino/openvino/openvino_contrib
@@ -159,9 +159,9 @@ jobs:
159159
160160
- name: Cmake install - OpenVINO
161161
run: |
162-
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -P ${BUILD_DIR}/cmake_install.cmake
163-
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_TEST_DIR} -DCOMPONENT=tests -P ${BUILD_DIR}/cmake_install.cmake
164-
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCOMPONENT=python_wheels -P ${BUILD_DIR}/cmake_install.cmake
162+
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -P ${BUILD_DIR}/cmake_install.cmake --config ${{ env.CMAKE_BUILD_TYPE }}
163+
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_TEST_DIR} -DCOMPONENT=tests -P ${BUILD_DIR}/cmake_install.cmake --config ${{ env.CMAKE_BUILD_TYPE }}
164+
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCOMPONENT=python_wheels -P ${BUILD_DIR}/cmake_install.cmake --config ${{ env.CMAKE_BUILD_TYPE }}
165165
166166
- name: Remove unused files to free space
167167
run: rm -rf ${BUILD_DIR}/*

0 commit comments

Comments
 (0)