forked from obsproject/obs-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
135 lines (122 loc) · 4.13 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
134
# https://aka.ms/yaml
variables:
CMAKE_PREFIX_PATH: /usr/local/opt/qt5/lib/cmake
CEF_BUILD_VERSION: 3770
CEF_VERSION: 75.1.16+g16a67c4+chromium-75.0.3770.100
TWITCH-CLIENTID: $(twitch_clientid)
TWITCH-HASH: $(twitch_hash)
MIXER-CLIENTID: $(mixer_clientid)
MIXER-HASH: $(mixer_hash)
RESTREAM-CLIENTID: $(restream_clientid)
RESTREAM-HASH: $(restream_hash)
jobs:
- job: Prebuild
pool:
vmImage: 'ubuntu-18.04'
steps:
- bash: |
if curl -s "https://api.github.com/repos/$BUILD_REPOSITORY_ID/issues/$SYSTEM_PULLREQUEST_PULLREQUESTNUMBER/labels" | grep '"name": "Seeking Testers"'
then
echo "##vso[task.setvariable variable=prHasCILabel;isOutput=true]true"
fi
displayName: 'Check if PR should keep artifacts'
condition: eq(variables['Build.Reason'], 'PullRequest')
name: checkPrLabel
- job: 'Build_macOS'
dependsOn: Prebuild
variables:
prHasCILabel: $[ dependencies.Prebuild.outputs['checkPrLabel.prHasCILabel'] ]
pool:
vmImage: 'macOS-10.15'
steps:
- script: git submodule update --init --recursive
displayName: 'Checkout Submodules'
- script: ./CI/install-dependencies-osx.sh
displayName: 'Install Dependencies'
- script: ./CI/before-script-osx.sh
displayName: 'Cmake'
- bash: |
set -e
cd ./build
make -j4
cd -
displayName: 'Build'
- script: ./CI/before-deploy-osx.sh
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
displayName: 'Before Deploy'
- task: PublishBuildArtifacts@1
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
inputs:
pathtoPublish: './nightly'
artifactName: macbuild
- job: 'Build_Windows32'
dependsOn: Prebuild
variables:
prHasCILabel: $[ dependencies.Prebuild.outputs['checkPrLabel.prHasCILabel'] ]
pool:
vmImage: 'windows-2019'
steps:
- script: git submodule update --init --recursive
displayName: 'Checkout Submodules'
- script: ./CI/install-qt-win.cmd
displayName: 'Install QT'
- script: ./CI/install-script-win.cmd
displayName: 'Download / Setup Deps / Run CMake'
- task: MSBuild@1
displayName: 'Build 32-bit'
inputs:
msbuildArguments: '/m /p:Configuration=RelWithDebInfo'
solution: .\build32\obs-studio.sln
- script: ./CI/before-deploy-win.cmd
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
displayName: 'Before deploy'
- task: PublishBuildArtifacts@1
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
inputs:
pathtoPublish: './build'
artifactName: winbuild
- job: 'Build_Windows64'
dependsOn: Prebuild
variables:
prHasCILabel: $[ dependencies.Prebuild.outputs['checkPrLabel.prHasCILabel'] ]
pool:
vmImage: 'windows-2019'
steps:
- script: git submodule update --init --recursive
displayName: 'Checkout Submodules'
- script: ./CI/install-qt-win.cmd
displayName: 'Install QT'
- script: ./CI/install-script-win.cmd
displayName: 'Download / Setup Deps / Run CMake'
- task: MSBuild@1
displayName: 'Build 64-bit'
inputs:
msbuildArguments: '/m /p:Configuration=RelWithDebInfo'
solution: .\build64\obs-studio.sln
- script: ./CI/before-deploy-win.cmd
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
displayName: 'Before deploy'
- task: PublishBuildArtifacts@1
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
inputs:
pathtoPublish: './build'
artifactName: winbuild
- job: 'Build_Linux'
dependsOn: Prebuild
variables:
prHasCILabel: $[ dependencies.Prebuild.outputs['checkPrLabel.prHasCILabel'] ]
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: git submodule update --init --recursive
displayName: 'Checkout Submodules'
- script: ./CI/install-dependencies-linux.sh
displayName: 'Install Dependencies'
- script: ./CI/before-script-linux.sh
displayName: 'CMake'
- bash: |
set -e
cd ./build
make -j4
cd -
displayName: 'Build'