-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
112 lines (112 loc) · 3.73 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
trigger:
- '*'
pr:
- '*'
jobs:
- job: build_osx_10_13_xcode10_1
pool:
vmImage: 'macOS-10.13'
variables:
DEVELOPER_DIR: "/Applications/Xcode_10.1.app"
steps:
- script: brew install libtool automake
displayName: brew install
- script: |
set -e
cd gradle
./gradlew test_all -Pconfig=Debug
./gradlew build_all -Pconfig=Release
cd ..
env:
AZURE_STORAGE_ACCOUNT: $(azure.storage.account)
AZURE_STORAGE_KEY: $(azure.storage.key)
AZURE_STORAGE_CONTAINER_NAME: $(azure.storage.container.name)
ORG_GRADLE_PROJECT_renew_cache: $(cache.renew)
displayName: build all
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/build_release/Release'
contents: '**/*'
targetFolder: '$(Build.ArchiveStagingDirectory)'
displayName: Copy binaries
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
contents: |
LICENSE.txt
CREDITS.txt
targetFolder: '$(Build.ArchiveStagingDirectory)'
displayName: Copy licenses
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArchiveStagingDirectory)'
artifactName: vst3samplehost_release_osx_xcode10_1
displayName: publish artifacts
- job: build_win_msvc_2017
pool:
vmImage: 'vs2017-win2016'
steps:
- script: |
cd gradle
call gradlew test_all -Pconfig=Debug -Pmsvc_version="Visual Studio 15 2017" -Pcache_title=win2016-vs2017 || exit /b
call gradlew build_all -Pconfig=Release -Pmsvc_version="Visual Studio 15 2017" -Pcache_title=win2016-vs2017 || exit /b
cd ..
env:
AZURE_STORAGE_ACCOUNT: $(azure.storage.account)
AZURE_STORAGE_KEY: $(azure.storage.key)
AZURE_STORAGE_CONTAINER_NAME: $(azure.storage.container.name)
ORG_GRADLE_PROJECT_renew_cache: $(cache.renew)
displayName: build all
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/build_release/Release'
contents: '**/*'
targetFolder: '$(Build.ArchiveStagingDirectory)'
displayName: Copy binaries
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
contents: |
LICENSE.txt
CREDITS.txt
targetFolder: '$(Build.ArchiveStagingDirectory)'
displayName: Copy licenses
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArchiveStagingDirectory)'
artifactName: vst3samplehost_release_win_msvc2017
displayName: publish artifacts
- job: build_win_msvc_2019
pool:
vmImage: 'windows-2019'
steps:
- script: |
cd gradle
call gradlew test_all -Pconfig=Debug -Pmsvc_version="Visual Studio 16 2019" -Pcache_title=win2019-vs2019 || exit /b
call gradlew build_all -Pconfig=Release -Pmsvc_version="Visual Studio 16 2019" -Pcache_title=win2019-vs2019 || exit /b
cd ..
env:
AZURE_STORAGE_ACCOUNT: $(azure.storage.account)
AZURE_STORAGE_KEY: $(azure.storage.key)
AZURE_STORAGE_CONTAINER_NAME: $(azure.storage.container.name)
ORG_GRADLE_PROJECT_renew_cache: $(cache.renew)
displayName: build all
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)/build_release/Release'
contents: '**/*'
targetFolder: '$(Build.ArchiveStagingDirectory)'
displayName: Copy binaries
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
contents: |
LICENSE.txt
CREDITS.txt
targetFolder: '$(Build.ArchiveStagingDirectory)'
displayName: Copy licenses
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArchiveStagingDirectory)'
artifactName: vst3samplehost_release_win_msvc2019
displayName: publish artifacts