mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-26 03:19:52 +03:00
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
parameters:
|
|
- name: bits
|
|
type: string
|
|
|
|
steps:
|
|
- script: |
|
|
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)
|
|
cmake --build .
|
|
workingDirectory: $(Build.BinariesDirectory)
|
|
displayName: 'Build'
|
|
- script: |
|
|
mkdir "$(Build.StagingDirectory)/installers"
|
|
vpnsetup /SFXMODE:vpnclient /SFXOUT:"$(Build.StagingDirectory)/installers/softether-vpnclient-$(Build.SourceVersion).exe"
|
|
vpnsetup /SFXMODE:vpnserver_vpnbridge /SFXOUT:"$(Build.StagingDirectory)/installers/softether-vpnserver_vpnbridge-$(Build.SourceVersion).exe"
|
|
workingDirectory: $(Build.BinariesDirectory)
|
|
displayName: 'Build installers'
|
|
- powershell: |
|
|
. .ci\appveyor-vpntest.ps1
|
|
displayName: 'Test'
|
|
- task: CopyFiles@2
|
|
inputs:
|
|
sourceFolder: '$(Build.BinariesDirectory)'
|
|
contents: '?(*.exe|*.se2|*.pdb)'
|
|
TargetFolder: '$(Build.StagingDirectory)/binaries'
|
|
flattenFolders: true
|
|
- task: PublishBuildArtifacts@1
|
|
inputs:
|
|
pathtoPublish: '$(Build.StagingDirectory)/binaries'
|
|
artifactName: 'Binaries'
|
|
- task: PublishBuildArtifacts@1
|
|
inputs:
|
|
pathtoPublish: '$(Build.StagingDirectory)/installers'
|
|
artifactName: 'Installers'
|