-
Notifications
You must be signed in to change notification settings - Fork 19
/
.disable.azure-pipelines.yml
66 lines (53 loc) · 2.01 KB
/
.disable.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
55
56
57
58
59
60
61
62
63
64
65
66
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
jobs:
- job: Windows_VS2017_x64
pool:
vmImage: 'vs2017-win2016'
variables:
- name: VCPKG_BINARY_SOURCES
value: 'clear;nuget,dependencies,readwrite'
steps:
- task: NuGetAuthenticate@0
- task: NuGetCommand@2
displayName: Setup nuget repo
inputs:
command: custom
arguments: 'sources add -name dependencies -Source https://pkgs.dev.azure.com/Opticks/aca72545-4b50-422e-87bb-6d06eb778bf0/_packaging/dependencies/nuget/v3/index.json'
- task: NuGetCommand@2
displayName: Set nuget api key
inputs:
command: custom
arguments: 'setapikey BuildPipeline -Source dependencies'
- script: git submodule update --init Dependencies\vcpkg
displayName: Checkout vcpkg submodule
- script: .\Dependencies\vcpkg\bootstrap-vcpkg.bat
displayName: Bootstrap vcpkg
- script: .\Dependencies\vcpkg\vcpkg.exe install @Dependencies\vcpkg.list --vcpkg-root Dependencies\vcpkg --triplet x64-windows
displayName: install vcpkg dependencies
- task: DeleteFiles@1
displayName: Clear temporary vcpkg files
inputs:
SourceFolder: '.\Dependencies\vcpkg'
Contents: |
buildtrees
downloads
packages
- task: CMake@1
inputs:
cmakeArgs: '-A x64 -DCMAKE_TOOLCHAIN_FILE=../Dependencies/vcpkg/scripts/buildsystems/vcpkg.cmake ../Code/application'
- task: MSBuild@1
inputs:
solution: 'build\ALL_BUILD.vcxproj'
configuration: Debug
maximumCpuCount: true
platform: 'x64'
- task: PublishPipelineArtifact@1
inputs:
targetPath: 'build'
artifact: 'Opticks Debug Build'
publishLocation: 'pipeline'