|
9 | 9 | inputs: |
10 | 10 | createCustomEnvironment: True |
11 | 11 | environmentName: shogun |
12 | | - packageSpecs: 'python=3.6.* setuptools numpy scipy eigen rxcpp snappy zlib ctags ply jinja2 gtest mkl-devel' |
| 12 | + packageSpecs: 'python=3.6.* setuptools numpy scipy eigen rxcpp snappy zlib ctags ply jinja2 gtest mkl-devel swig' |
13 | 13 | createOptions: '-c conda-forge' |
14 | 14 | updateConda: false |
15 | 15 |
|
16 | 16 | - script: | |
17 | 17 | .ci\\setup_clcache.cmd |
18 | 18 | displayName: Setup CLCache |
19 | 19 |
|
| 20 | +- script: mkdir $(targetPrefix) |
| 21 | + displayName: Create artifact directory |
| 22 | + |
20 | 23 | - template: ./download-extract.yml |
21 | 24 | parameters: |
22 | 25 | name: 'CLcache' |
23 | 26 | artifactName: $(clcacheArtifactName) |
24 | 27 | destinationFolder: $(clcacheDir) |
25 | | - downloadPath: $(build.binariesDirectory) |
| 28 | + downloadPath: $(Build.BinariesDirectory) |
| 29 | + |
| 30 | +- ${{ if eq(parameters.swig, 'true') }}: |
| 31 | + - template: ./download-extract.yml |
| 32 | + parameters: |
| 33 | + name: 'LibShogun' |
| 34 | + artifactName: $(libshogunArtifactName) |
| 35 | + downloadPath: $(Build.BinariesDirectory) |
| 36 | + destinationFolder: $(targetPrefix) |
| 37 | + specificBuildWithTriggering: true |
26 | 38 |
|
27 | 39 | - task: CMake@1 |
28 | 40 | displayName: Setup |
29 | 41 | inputs: |
30 | | - cmakeArgs: '-G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=$(buildConfiguration) -DCMAKE_INSTALL_PREFIX=$(CONDA_PREFIX)\Library -DBUILD_META_EXAMPLES=OFF -DENABLE_TESTING=ON ..' |
| 42 | + cmakeArgs: '-G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=$(buildConfiguration) -DCMAKE_PREFIX_PATH=$(CONDA_PREFIX)\Library -DENABLE_TESTING=ON -DCMAKE_INSTALL_PREFIX=$(targetPrefix) $(cmakeOptions) ..' |
31 | 43 |
|
32 | | -- task: VSBuild@1 |
33 | | - displayName: 'VSBuild ($(buildConfiguration) $(buildPlatform))' |
34 | | - inputs: |
35 | | - solution: 'build/shogun.sln' |
36 | | - vsVersion: 'latest' |
37 | | - platform: $(buildPlatform) |
38 | | - msbuildArchitecture: $(buildPlatform) |
39 | | - msbuildArgs: '/p:TrackFileAccess=false /p:CLToolExe=clcache.exe' |
40 | | - configuration: $(buildConfiguration) |
41 | | - |
42 | | -- script: ctest -j%NUMBER_OF_PROCESSORS% -C $(buildConfiguration) |
| 44 | +- script: cmake --build . --config $(buildConfiguration) --target INSTALL -- /p:TrackFileAccess=false /p:CLToolExe=clcache.exe /m:2 |
| 45 | + displayName: 'Build ($(buildConfiguration) $(buildPlatform))' |
| 46 | + workingDirectory: $(Build.SourcesDirectory)\build |
| 47 | + |
| 48 | +- script: ctest -j 2 |
43 | 49 | displayName: Test |
44 | | - workingDirectory: build |
| 50 | + workingDirectory: $(Build.SourcesDirectory)\build |
45 | 51 |
|
46 | 52 | - script: clcache -s |
47 | 53 | displayName: CLCache statistics |
48 | 54 |
|
| 55 | +- ${{ if ne(parameters.swig, 'true') }}: |
| 56 | + - template: ./archive-deploy.yml |
| 57 | + parameters: |
| 58 | + name: 'LibShogun' |
| 59 | + dir: $(targetPrefix) |
| 60 | + archive: $(libshogunArchive) |
| 61 | + artifactName: $(libshogunArtifactName) |
| 62 | + |
49 | 63 | - template: ./archive-deploy.yml |
50 | 64 | parameters: |
51 | 65 | name: 'CLcache' |
|
0 commit comments