2020-07-21 23:01:19 +03:00
|
|
|
parameters:
|
|
|
|
- name: bits
|
|
|
|
type: string
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
cd /d $(Build.BinariesDirectory)
|
2020-07-27 21:44:15 +03:00
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars${{parameters.bits}}.bat"
|
|
|
|
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl $(Build.SourcesDirectory)
|
2020-07-21 23:01:19 +03:00
|
|
|
cmake --build .
|
|
|
|
displayName: 'Build'
|
|
|
|
- powershell: |
|
|
|
|
. .ci\appveyor-vpntest.ps1
|
|
|
|
displayName: 'Test'
|
|
|
|
- task: CopyFiles@2
|
|
|
|
inputs:
|
|
|
|
sourceFolder: '$(Build.BinariesDirectory)'
|
|
|
|
contents: '?(*.exe|*.se2|*.pdb)'
|
|
|
|
TargetFolder: '$(Build.StagingDirectory)'
|
|
|
|
flattenFolders: true
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: '$(Build.StagingDirectory)'
|
|
|
|
artifactName: 'Binaries'
|