mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
disable UBSAN builds in CI (#8030)
This commit is contained in:
@@ -1,63 +0,0 @@
|
||||
steps:
|
||||
- bash: |
|
||||
sudo apt-get install g++ wget make libgl1-mesa-dev mesa-common-dev
|
||||
source ${CONDA}/etc/profile.d/conda.sh
|
||||
sudo chown -R ${USER} ${CONDA}
|
||||
conda config --set always_yes yes --set changeps1 no
|
||||
conda update -q conda
|
||||
conda info -a
|
||||
conda create --name rdkit_build -c conda-forge $(python) cmake \
|
||||
libboost=$(boost_version) \
|
||||
libboost-devel=$(boost_version) \
|
||||
eigen cairo freetype
|
||||
conda activate rdkit_build
|
||||
displayName: Setup build environment (no Qt due to versioning problems)
|
||||
- bash: |
|
||||
source ${CONDA}/etc/profile.d/conda.sh
|
||||
conda activate rdkit_build
|
||||
export CXXFLAGS="${CXXFLAGS} -Wall -Werror -Wextra --sanitize=undefined"
|
||||
mkdir build && cd build && \
|
||||
cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DRDK_INSTALL_INTREE=ON \
|
||||
-DRDK_INSTALL_STATIC_LIBS=OFF \
|
||||
-DRDK_BUILD_CPP_TESTS=ON \
|
||||
-DRDK_BUILD_PYTHON_WRAPPERS=OFF \
|
||||
-DRDK_BUILD_COORDGEN_SUPPORT=ON \
|
||||
-DRDK_BUILD_MAEPARSER_SUPPORT=ON \
|
||||
-DRDK_OPTIMIZE_POPCNT=ON \
|
||||
-DRDK_BUILD_TEST_GZIP=ON \
|
||||
-DRDK_BUILD_FREESASA_SUPPORT=ON \
|
||||
-DRDK_BUILD_AVALON_SUPPORT=ON \
|
||||
-DRDK_BUILD_INCHI_SUPPORT=ON \
|
||||
-DRDK_BUILD_YAEHMOP_SUPPORT=ON \
|
||||
-DRDK_BUILD_XYZ2MOL_SUPPORT=ON \
|
||||
-DRDK_BUILD_CAIRO_SUPPORT=ON \
|
||||
-DRDK_BUILD_SWIG_WRAPPERS=OFF \
|
||||
-DRDK_SWIG_STATIC=OFF \
|
||||
-DRDK_BUILD_THREADSAFE_SSS=ON \
|
||||
-DRDK_TEST_MULTITHREADED=ON \
|
||||
-DRDK_CFFI_STATIC=OFF \
|
||||
-DRDK_BUILD_CFFI_LIB=ON
|
||||
displayName: Configure build (Run CMake)
|
||||
- bash: |
|
||||
source ${CONDA}/etc/profile.d/conda.sh
|
||||
conda activate rdkit_build
|
||||
cd build
|
||||
make -j $( $(number_of_cores) ) install
|
||||
displayName: Build
|
||||
- bash: |
|
||||
source ${CONDA}/etc/profile.d/conda.sh
|
||||
conda activate rdkit_build
|
||||
export RDBASE=`pwd`
|
||||
export LD_LIBRARY_PATH=${RDBASE}/lib:${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}
|
||||
echo "LD_LIBRARY_PATH: " $LD_LIBRARY_PATH
|
||||
export QT_QPA_PLATFORM='offscreen'
|
||||
cd build
|
||||
ctest -j $( $(number_of_cores) ) --output-on-failure -T Test
|
||||
displayName: Run tests
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: 'CTest'
|
||||
testResultsFiles: 'build/Testing/*/Test.xml'
|
||||
testRunTitle: $(system.phasedisplayname) CTest Test Run
|
||||
@@ -125,20 +125,6 @@ jobs:
|
||||
python_name: python38
|
||||
steps:
|
||||
- template: .azure-pipelines/vs_build_swig.yml
|
||||
- job: Ubuntu_x64_ubsan
|
||||
timeoutInMinutes: 120
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
variables:
|
||||
python: python=3.11
|
||||
boost_version: 1.82.0
|
||||
compiler: gxx_linux-64
|
||||
cc: gcc-10
|
||||
cxx: g++-10
|
||||
number_of_cores: nproc
|
||||
python_name: python311
|
||||
steps:
|
||||
- template: .azure-pipelines/linux_build_ubsan.yml
|
||||
|
||||
# - job: Ubuntu_18_04_x64_fuzzer
|
||||
# timeoutInMinutes: 90
|
||||
|
||||
Reference in New Issue
Block a user