mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
25 lines
765 B
YAML
25 lines
765 B
YAML
|
parameters:
|
||
|
- name: bits
|
||
|
type: string
|
||
|
|
||
|
steps:
|
||
|
- script: |
|
||
|
cd /d $(Build.BinariesDirectory)
|
||
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\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)
|
||
|
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'
|