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:
|
2022-04-27 11:13:37 +03:00
|
|
|
key: '"vcpkg-manifest" | "$(Agent.OS)" | "${{parameters.vcpkgTriplet}}" | C:/vcpkg/.git/refs/heads/master'
|
|
|
|
path: '$(Build.BinariesDirectory)/vcpkg_installed'
|
2020-07-28 00:34:34 +03:00
|
|
|
displayName: 'Environment storage'
|
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)'
|
2023-11-02 12:42:12 +03:00
|
|
|
TargetFolder: '$(Build.StagingDirectory)/binaries/${{parameters.architecture}}'
|
2020-07-21 23:01:19 +03:00
|
|
|
flattenFolders: true
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
2023-11-02 12:42:12 +03:00
|
|
|
pathtoPublish: '$(Build.StagingDirectory)/binaries/${{parameters.architecture}}'
|
|
|
|
artifactName: 'Binaries_${{parameters.architecture}}'
|
2020-07-27 09:10:20 +03:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: '$(Build.StagingDirectory)/installers'
|
|
|
|
artifactName: 'Installers'
|