mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge PR #1179: Azure Pipelines: add Windows 32 bit build, templatize Windows steps
This commit is contained in:
commit
3c99f64621
24
.ci/azure-pipelines-win-steps.yml
Normal file
24
.ci/azure-pipelines-win-steps.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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'
|
@ -4,22 +4,14 @@ jobs:
|
|||||||
pool:
|
pool:
|
||||||
vmImage: vs2017-win2016
|
vmImage: vs2017-win2016
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- template: "azure-pipelines-win-steps.yml"
|
||||||
cd /d %BUILD_BINARIESDIRECTORY%
|
parameters:
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
bits: "64"
|
||||||
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=cl "-DCMAKE_CXX_COMPILER=cl" %BUILD_SOURCESDIRECTORY%
|
- job: windows_x86
|
||||||
cmake --build .
|
displayName: 'Windows (x86)'
|
||||||
displayName: 'Build'
|
pool:
|
||||||
- powershell: |
|
vmImage: vs2017-win2016
|
||||||
. .ci\appveyor-vpntest.ps1
|
steps:
|
||||||
displayName: 'Test'
|
- template: "azure-pipelines-win-steps.yml"
|
||||||
- task: CopyFiles@2
|
parameters:
|
||||||
inputs:
|
bits: "32"
|
||||||
sourceFolder: '$(Build.BinariesDirectory)'
|
|
||||||
contents: '?(*.exe|*.se2|*.pdb)'
|
|
||||||
TargetFolder: '$(Build.StagingDirectory)'
|
|
||||||
flattenFolders: true
|
|
||||||
- task: PublishBuildArtifacts@1
|
|
||||||
inputs:
|
|
||||||
pathtoPublish: '$(Build.StagingDirectory)'
|
|
||||||
artifactName: 'Binaries'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user