2020-07-21 23:01:19 +03:00
|
|
|
parameters:
|
2020-07-28 00:34:34 +03:00
|
|
|
- name: architecture
|
|
|
|
type: string
|
2020-08-16 03:15:25 +03:00
|
|
|
- name: compilerPath
|
|
|
|
type: string
|
2020-07-28 00:34:34 +03:00
|
|
|
- name: vcpkgTriplet
|
|
|
|
type: string
|
|
|
|
- name: vcvarsPath
|
2020-07-21 23:01:19 +03:00
|
|
|
type: string
|
|
|
|
|
|
|
|
steps:
|
2020-07-28 00:34:34 +03:00
|
|
|
- task: Cache@2
|
|
|
|
inputs:
|
|
|
|
key: '"vcpkg-installed-windows-${{parameters.architecture}}"'
|
|
|
|
path: 'C:/vcpkg/installed'
|
|
|
|
displayName: 'Environment storage'
|
|
|
|
- script: |
|
2021-02-04 08:10:38 +03:00
|
|
|
vcpkg install libsodium openssl zlib --triplet ${{parameters.vcpkgTriplet}}
|
2020-07-28 00:34:34 +03:00
|
|
|
workingDirectory: C:/vcpkg
|
|
|
|
displayName: 'Prepare environment'
|
2021-02-19 23:22:48 +03:00
|
|
|
- script: '$(Build.SourcesDirectory)/.ci/azure-pipelines/windows_build.bat'
|
|
|
|
env:
|
|
|
|
ARCHITECTURE: ${{parameters.architecture}}
|
|
|
|
COMPILER_PATH: ${{parameters.compilerPath}}
|
|
|
|
VCPKG_TRIPLET: ${{parameters.vcpkgTriplet}}
|
|
|
|
VCVARS_PATH: ${{parameters.vcvarsPath}}
|
|
|
|
SE_BUILD_NUMBER_TOKEN: $(BUILD_NUMBER_TOKEN)
|
2020-07-21 23:01:19 +03:00
|
|
|
displayName: 'Build'
|
|
|
|
- powershell: |
|
2020-07-28 00:34:34 +03:00
|
|
|
. .ci/appveyor-vpntest.ps1
|
2020-07-21 23:01:19 +03:00
|
|
|
displayName: 'Test'
|
|
|
|
- task: CopyFiles@2
|
|
|
|
inputs:
|
|
|
|
sourceFolder: '$(Build.BinariesDirectory)'
|
|
|
|
contents: '?(*.exe|*.se2|*.pdb)'
|
2020-07-27 09:10:20 +03:00
|
|
|
TargetFolder: '$(Build.StagingDirectory)/binaries'
|
2020-07-21 23:01:19 +03:00
|
|
|
flattenFolders: true
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
2020-07-27 09:10:20 +03:00
|
|
|
pathtoPublish: '$(Build.StagingDirectory)/binaries'
|
2020-07-21 23:01:19 +03:00
|
|
|
artifactName: 'Binaries'
|
2020-07-27 09:10:20 +03:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: '$(Build.StagingDirectory)/installers'
|
|
|
|
artifactName: 'Installers'
|