forked from ratwithacompiler/OBS-captions-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
134 lines (106 loc) · 4.05 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# https://aka.ms/yaml
jobs:
- job: 'Build_MacOS_HTTP'
pool:
vmImage: 'macOS-10.14'
steps:
- script: git submodule update --init --recursive
displayName: 'Checkout Submodules'
- task: DownloadPipelineArtifact@2
inputs:
project: '4b438742-da7e-4123-8cf4-55564485db7e'
pipeline: 6
buildType: 'specific'
buildVersionToDownload: 'latestFromBranch'
branchName: "refs/heads/macos_obs"
artifactName: obs_deps_macos
targetPath: $(Build.SourcesDirectory)/CI/obs_deps/
- script: $(Build.SourcesDirectory)/CI/install-script-osx.sh
workingDirectory: $(Build.SourcesDirectory)/CI
displayName: 'Setup build'
env:
GOOGLE_API_KEY: $(GOOGLE_API_KEY)
- bash: |
pwd
set -e
make -j4
displayName: 'Build'
workingDirectory: $(Build.SourcesDirectory)/CI/build
- script: $(Build.SourcesDirectory)/CI/post-install-script-osx.sh
displayName: 'Post install'
workingDirectory: $(Build.SourcesDirectory)/CI
- task: PublishPipelineArtifact@1
inputs:
path: "$(Build.SourcesDirectory)/CI/release/"
artifact: Closed_Captions_Plugin__Release_MacOS_HTTP
- job: 'Build_Windows_HTTP'
pool:
vmImage: 'vs2017-win2016'
steps:
- script: git submodule update --init --recursive
displayName: 'Checkout Submodules'
- task: DownloadPipelineArtifact@2
inputs:
project: '4b438742-da7e-4123-8cf4-55564485db7e'
pipeline: 6
buildType: 'specific'
buildVersionToDownload: 'latestFromBranch'
branchName: "refs/heads/windows_obs"
artifactName: obs_deps_windows
targetPath: $(Build.SourcesDirectory)/CI/obs_deps/
- script: $(Build.SourcesDirectory)\CI\install-script-win.cmd
displayName: 'Setup, CMake'
workingDirectory: $(Build.SourcesDirectory)\CI
env:
GOOGLE_API_KEY: $(GOOGLE_API_KEY)
- task: MSBuild@1
displayName: 'Build 64-bit'
inputs:
msbuildArguments: '/m /p:Configuration=RelWithDebInfo'
solution: $(Build.SourcesDirectory)\CI\build_64\obs_google_caption_plugin.sln
- task: MSBuild@1
displayName: 'Build 32-bit'
inputs:
msbuildArguments: '/m /p:Configuration=RelWithDebInfo'
solution: $(Build.SourcesDirectory)\CI\build_32\obs_google_caption_plugin.sln
- script: $(Build.SourcesDirectory)\CI\post-install-script-win.cmd
workingDirectory: $(Build.SourcesDirectory)\CI
displayName: 'Post install'
- task: PublishPipelineArtifact@1
inputs:
path: '$(Build.SourcesDirectory)/CI/release/'
artifact: Closed_Captions_Plugin__Release_Windows_HTTP
- job: 'Build_Linux_HTTP'
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: git submodule update --init --recursive
displayName: 'Checkout Submodules'
- task: DownloadPipelineArtifact@2
inputs:
project: '4b438742-da7e-4123-8cf4-55564485db7e'
pipeline: 6
buildType: 'specific'
buildVersionToDownload: 'latestFromBranch'
branchName: "refs/heads/linux_obs"
artifactName: obs_deps_linux
targetPath: $(Build.SourcesDirectory)/CI/obs_deps/
- script: $(Build.SourcesDirectory)/CI/install-script-linux.sh
displayName: 'Setup, CMake'
workingDirectory: $(Build.SourcesDirectory)/CI
env:
GOOGLE_API_KEY: $(GOOGLE_API_KEY)
- bash: |
pwd
set -e
cd ./build
make -j4
displayName: 'Build'
workingDirectory: $(Build.SourcesDirectory)/CI
- script: $(Build.SourcesDirectory)/CI/post-install-script-linux.sh
displayName: 'Post install'
workingDirectory: $(Build.SourcesDirectory)/CI
- task: PublishPipelineArtifact@1
inputs:
path: "$(Build.SourcesDirectory)/CI/release/"
artifact: Closed_Captions_Plugin__Release_Linux64_HTTP