/
windows-steps.yml
68 lines (57 loc) · 2.15 KB
/
windows-steps.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
63
64
65
66
67
68
steps:
- checkout: self
clean: true
fetchDepth: 5
submodules: true
- task: CondaEnvironment@1
displayName: Install dependencies
inputs:
createCustomEnvironment: True
environmentName: shogun
packageSpecs: 'python=3.6.* setuptools numpy scipy eigen snappy zlib ctags ply jinja2 gtest mkl-devel swig'
createOptions: '-c conda-forge'
updateConda: false
- script: |
.ci\\setup_clcache.cmd
displayName: Setup CLCache
- script: mkdir $(targetPrefix)
displayName: Create artifact directory
- template: ./download-extract.yml
parameters:
name: 'CLcache'
artifactName: $(clcacheArtifactName)
destinationFolder: $(clcacheDir)
downloadPath: $(Build.BinariesDirectory)
- ${{ if eq(parameters.swig, 'true') }}:
- template: ./download-extract.yml
parameters:
name: 'LibShogun'
artifactName: $(libshogunArtifactName)
downloadPath: $(Build.BinariesDirectory)
destinationFolder: $(targetPrefix)
specificBuildWithTriggering: true
- task: CMake@1
displayName: Setup
inputs:
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) -DBLAS_LIBRARIES=$(CONDA_PREFIX)/Library/lib/mkl_core_dll.lib -DLAPACK_LIBRARIES=$(CONDA_PREFIX)/Library/lib/mkl_core_dll.lib -DBLA_VENDOR=Intel ..'
- script: cmake --build . --config $(buildConfiguration) --target INSTALL -- /p:TrackFileAccess=false /p:CLToolExe=clcache.exe /m:2
displayName: 'Build ($(buildConfiguration) $(buildPlatform))'
workingDirectory: $(Build.SourcesDirectory)\build
- script: ctest -j 2
displayName: Test
workingDirectory: $(Build.SourcesDirectory)\build
- script: clcache -s
displayName: CLCache statistics
- ${{ if ne(parameters.swig, 'true') }}:
- template: ./archive-deploy.yml
parameters:
name: 'LibShogun'
dir: $(targetPrefix)
archive: $(libshogunArchive)
artifactName: $(libshogunArtifactName)
- template: ./archive-deploy.yml
parameters:
name: 'CLcache'
dir: $(clcacheDir)
archive: $(clcacheArchive)
artifactName: $(clcacheArtifactName)