-
Notifications
You must be signed in to change notification settings - Fork 14
/
azure-pipelines.yml
54 lines (54 loc) · 2.1 KB
/
azure-pipelines.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
trigger:
- master
variables:
buildPlatform: 'x64'
buildConfiguration: 'Release'
VCPKG_DEFAULT_TRIPLET: 'x64-windows'
VCPKG_CONFIG_CACHE: D:/a/1/s/vcpkg/installed
jobs:
- job: Default
timeoutInMinutes: 360
cancelTimeoutInMinutes: 180
pool:
vmImage: 'windows-latest'
steps:
- checkout: self
submodules: true
- script: .\vcpkg\bootstrap-vcpkg.bat
- task: Cache@2
inputs:
key: 'version2 | vcpkg-cache | "$(Agent.OS)"'
restoreKeys: |
vcpkg-cache | $(Agent.OS)
vcpkg-cache
path: $(VCPKG_CONFIG_CACHE)
cacheHitVar: CACHE_RESTORED
displayName: Cache vcpkg packages
- script: .\vcpkg\vcpkg.exe install hdf5 netcdf-c yaml-cpp zeromq jsoncpp --triplet x64-windows
condition: ne(variables.CACHE_RESTORED, 'true')
- script: mkdir build
- task: CMake@1
inputs:
workingDirectory: 'build'
cmakeArgs: '-G "Visual Studio 17 2022" -A x64 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DBUILD_WITH_QT=OFF -DBUILD_WITH_ZMQ=ON -DAVX2=ON ..'
- task: MSBuild@1
inputs:
solution: 'build/ALL_BUILD.vcxproj'
configuration: Release
maximumCpuCount: true
platform: 'x64'
#- script: new-item -itemtype file -path $(System.DefaultWorkingDirectory)/install -name "version.json" -force -value '{\"buildNumber\":\"$(Build.BuildNumber)\",\"buildId\":\"$(Build.BuildId)\",\"branchName\":\"$(Build.SourceBranchName)\",\"commitHash\":\"$(Build.SourceVersion)\"}'
- task: CopyFiles@2
displayName: 'Copy bin Files to install'
inputs:
SourceFolder: $(System.DefaultWorkingDirectory)/bin
TargetFolder: $(System.DefaultWorkingDirectory)/install/bin
- task: CopyFiles@2
displayName: 'Copy ref Files to install'
inputs:
SourceFolder: $(System.DefaultWorkingDirectory)/reference
TargetFolder: $(System.DefaultWorkingDirectory)/install/reference
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(System.DefaultWorkingDirectory)/install/
artifactName: XRF-Maps_Windows_x64_AVX2