mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Azure Pipelines: build Windows installers and provide them as artifacts
This commit is contained in:
parent
4b9c33cd30
commit
5bf08e63bb
@ -4,11 +4,17 @@ parameters:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
cd /d $(Build.BinariesDirectory)
|
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars${{parameters.bits}}.bat"
|
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 -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl $(Build.SourcesDirectory)
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
workingDirectory: $(Build.BinariesDirectory)
|
||||||
displayName: 'Build'
|
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: |
|
- powershell: |
|
||||||
. .ci\appveyor-vpntest.ps1
|
. .ci\appveyor-vpntest.ps1
|
||||||
displayName: 'Test'
|
displayName: 'Test'
|
||||||
@ -16,9 +22,13 @@ steps:
|
|||||||
inputs:
|
inputs:
|
||||||
sourceFolder: '$(Build.BinariesDirectory)'
|
sourceFolder: '$(Build.BinariesDirectory)'
|
||||||
contents: '?(*.exe|*.se2|*.pdb)'
|
contents: '?(*.exe|*.se2|*.pdb)'
|
||||||
TargetFolder: '$(Build.StagingDirectory)'
|
TargetFolder: '$(Build.StagingDirectory)/binaries'
|
||||||
flattenFolders: true
|
flattenFolders: true
|
||||||
- task: PublishBuildArtifacts@1
|
- task: PublishBuildArtifacts@1
|
||||||
inputs:
|
inputs:
|
||||||
pathtoPublish: '$(Build.StagingDirectory)'
|
pathtoPublish: '$(Build.StagingDirectory)/binaries'
|
||||||
artifactName: 'Binaries'
|
artifactName: 'Binaries'
|
||||||
|
- task: PublishBuildArtifacts@1
|
||||||
|
inputs:
|
||||||
|
pathtoPublish: '$(Build.StagingDirectory)/installers'
|
||||||
|
artifactName: 'Installers'
|
||||||
|
Loading…
Reference in New Issue
Block a user