forked from rdkit/rdkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vs_build_dll.yml
62 lines (62 loc) · 2.12 KB
/
vs_build_dll.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Setup build environment
- script: |
conda config --set always_yes yes --set changeps1 no
conda info -a
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
conda create --name rdkit_build ^
boost-cpp=$(boost_version) boost=$(boost_version) ^
libboost=$(boost_version) ^
numpy matplotlib=3.8 cairo pillow eigen pandas=2.1
call activate rdkit_build
conda install -c conda-forge cmake ipython=8.20 pytest nbval
displayName: Install dependencies
- script: |
set Boost_ROOT=
mkdir build && cd build
call activate rdkit_build
cmake .. ^
-G "Visual Studio 16 2019" ^
-DCMAKE_BUILD_TYPE=Release ^
-DRDK_INSTALL_INTREE=ON ^
-DRDK_INSTALL_STATIC_LIBS=OFF ^
-DRDK_INSTALL_DLLS_MSVC=ON ^
-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_THREADSAFE_SSS=ON ^
-DRDK_BUILD_SWIG_WRAPPERS=OFF ^
-DRDK_SWIG_STATIC=OFF ^
-DRDK_TEST_MULTITHREADED=ON ^
-DBoost_NO_BOOST_CMAKE=TRUE ^
-DCMAKE_INCLUDE_PATH=%CONDA_PREFIX%/Library/include ^
-DCMAKE_LIBRARY_PATH="%CONDA_PREFIX%/Library/lib
displayName: Configure build (Run CMake)
- script: |
call activate rdkit_build
cd build
cmake --build . --config Release --target install -j $(number_of_cores)
displayName: Build
- script: |
call activate rdkit_build
set RDBASE=%cd%
set PATH=%RDBASE%\lib;%PATH%
cd build
ctest -C Release -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