This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
azure-pipelines.yml
71 lines (68 loc) · 1.68 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
trigger:
branches:
include:
- master
tags:
include:
- 'v*'
jobs:
- job: clang
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
make CC=clang CXX=clang++
displayName: 'make'
- job: gcc
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
make CC=gcc CXX=g++
displayName: 'make'
- job: windows
strategy:
matrix:
x64-release:
platform: x64
configuration: Release
x64-debug:
platform: x64
configuration: Debug
Win32-release:
platform: Win32
configuration: Release
Win32-debug:
platform: Win32
configuration: Debug
pool:
vmImage: 'vs2017-win2016'
steps:
- task: VSBuild@1
inputs:
solution: 'vs/vs2015/ducible.sln'
vsVersion: 'latest'
platform: $(platform)
configuration: $(configuration)
msbuildArgs: '/m'
- script: |
runtests.bat vs/vs2015/$(platform)/$(configuration)
displayName: 'tests'
- script: >
7z a ducible-windows-$(platform)-$(configuration).zip
.\vs\vs2015\$(platform)\$(configuration)\ducible.exe
.\vs\vs2015\$(platform)\$(configuration)\pdbdump.exe
displayName: 'Archive Artifacts'
- task: GitHubRelease@0
displayName: 'Create GitHub Release'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
inputs:
gitHubConnection: release
repositoryName: '$(Build.Repository.Name)'
action: edit
target: '$(Build.SourceVersion)'
tagSource: manual
tag: '$(Build.SourceBranchName)'
assets: 'ducible-windows-$(platform)-$(configuration).zip'
assetUploadMode: replace
addChangeLog: false