@@ -34,19 +34,10 @@ stages:
34
34
useCppRestSDK : true
35
35
cMakeRunArgs : ' -A x64'
36
36
beforeBuild :
37
- # check if vcpkg exists on the machine before trying to build it
38
- - powershell : |
39
- if ((Get-Command vcpkg.exe -ErrorAction SilentlyContinue) -eq $null) {
40
- & ./submodules/vcpkg/bootstrap-vcpkg.bat
41
- }
37
+ - powershell : " & ./submodules/vcpkg/bootstrap-vcpkg.bat"
42
38
condition : ne(variables.CACHE_RESTORED, 'true')
43
39
displayName : Bootstrap vcpkg
44
- - powershell : |
45
- if (Get-Command vcpkg.exe -ErrorAction SilentlyContinue) {
46
- & vcpkg.exe install cpprestsdk:x64-windows --vcpkg-root ./submodules/vcpkg
47
- } else {
48
- & ./submodules/vcpkg/vcpkg.exe install cpprestsdk:x64-windows --vcpkg-root ./submodules/vcpkg
49
- }
40
+ - powershell : " & ./submodules/vcpkg/vcpkg.exe install cpprestsdk:x64-windows --vcpkg-root ./submodules/vcpkg"
50
41
condition : ne(variables.CACHE_RESTORED, 'true')
51
42
displayName : vcpkg install dependencies
52
43
afterBuild :
@@ -80,7 +71,10 @@ stages:
80
71
jobName : Linux_Build_Test_With_CppRestSDK
81
72
useCppRestSDK : true
82
73
beforeBuild :
83
- - script : sudo vcpkg install cpprestsdk boost-system boost-chrono boost-thread --vcpkg-root ./submodules/vcpkg
74
+ - bash : " ./submodules/vcpkg/bootstrap-vcpkg.sh"
75
+ condition : ne(variables.CACHE_RESTORED, 'true')
76
+ displayName : Bootstrap vcpkg
77
+ - bash : " ./submodules/vcpkg/vcpkg install cpprestsdk boost-system boost-chrono boost-thread --vcpkg-root ./submodules/vcpkg"
84
78
condition : ne(variables.CACHE_RESTORED, 'true')
85
79
displayName : vcpkg install dependencies
86
80
0 commit comments