2019-02-21 14:33:58 -08:00
|
|
|
# https://aka.ms/yaml
|
|
|
|
|
|
|
|
variables:
|
|
|
|
CMAKE_PREFIX_PATH: /usr/local/opt/qt5/lib/cmake
|
2019-08-20 09:41:22 -07:00
|
|
|
CEF_BUILD_VERSION: 3770
|
2019-08-30 07:05:33 -07:00
|
|
|
CEF_VERSION: 75.1.16+g16a67c4+chromium-75.0.3770.100
|
2019-03-23 06:35:29 -07:00
|
|
|
TWITCH-CLIENTID: $(twitch_clientid)
|
|
|
|
TWITCH-HASH: $(twitch_hash)
|
|
|
|
RESTREAM-CLIENTID: $(restream_clientid)
|
|
|
|
RESTREAM-HASH: $(restream_hash)
|
2019-03-05 22:02:06 -08:00
|
|
|
|
|
|
|
jobs:
|
2019-11-25 17:48:14 -08:00
|
|
|
- job: Prebuild
|
|
|
|
pool:
|
2020-03-21 21:31:36 -07:00
|
|
|
vmImage: 'ubuntu-18.04'
|
2019-11-25 17:48:14 -08:00
|
|
|
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
|
|
|
|
|
2019-03-05 22:02:06 -08:00
|
|
|
- job: 'Build_macOS'
|
2019-11-25 17:48:14 -08:00
|
|
|
dependsOn: Prebuild
|
|
|
|
variables:
|
|
|
|
prHasCILabel: $[ dependencies.Prebuild.outputs['checkPrLabel.prHasCILabel'] ]
|
2019-03-05 22:02:06 -08:00
|
|
|
pool:
|
2020-03-03 18:03:47 -08:00
|
|
|
vmImage: 'macOS-10.15'
|
2019-03-05 22:02:06 -08:00
|
|
|
steps:
|
|
|
|
- script: git submodule update --init --recursive
|
|
|
|
displayName: 'Checkout Submodules'
|
|
|
|
- script: ./CI/install-dependencies-osx.sh
|
|
|
|
displayName: 'Install Dependencies'
|
2019-02-21 14:33:58 -08:00
|
|
|
|
2019-03-05 22:02:06 -08:00
|
|
|
- script: ./CI/before-script-osx.sh
|
|
|
|
displayName: 'Cmake'
|
2019-02-21 14:33:58 -08:00
|
|
|
|
2019-03-05 22:02:06 -08:00
|
|
|
- bash: |
|
2020-02-09 17:10:57 -08:00
|
|
|
set -e
|
2019-03-05 22:02:06 -08:00
|
|
|
cd ./build
|
|
|
|
make -j4
|
|
|
|
cd -
|
|
|
|
displayName: 'Build'
|
2019-02-21 14:33:58 -08:00
|
|
|
|
2019-03-05 22:02:06 -08:00
|
|
|
- script: ./CI/before-deploy-osx.sh
|
2019-11-25 17:48:14 -08:00
|
|
|
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
|
2019-03-05 22:02:06 -08:00
|
|
|
displayName: 'Before Deploy'
|
2019-02-21 14:33:58 -08:00
|
|
|
|
2019-03-05 22:02:06 -08:00
|
|
|
- task: PublishBuildArtifacts@1
|
2019-11-25 17:48:14 -08:00
|
|
|
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
|
2019-03-05 22:02:06 -08:00
|
|
|
inputs:
|
|
|
|
pathtoPublish: './nightly'
|
2020-04-09 17:27:27 -07:00
|
|
|
artifactName: macbuild
|
2019-02-21 14:33:58 -08:00
|
|
|
|
2019-03-07 20:20:23 -08:00
|
|
|
- job: 'Build_Windows32'
|
2019-11-25 17:48:14 -08:00
|
|
|
dependsOn: Prebuild
|
|
|
|
variables:
|
|
|
|
prHasCILabel: $[ dependencies.Prebuild.outputs['checkPrLabel.prHasCILabel'] ]
|
2019-03-05 22:02:06 -08:00
|
|
|
pool:
|
2019-11-28 01:47:42 -08:00
|
|
|
vmImage: 'windows-2019'
|
2019-03-05 22:02:06 -08:00
|
|
|
steps:
|
|
|
|
- script: git submodule update --init --recursive
|
|
|
|
displayName: 'Checkout Submodules'
|
|
|
|
- script: ./CI/install-qt-win.cmd
|
|
|
|
displayName: 'Install QT'
|
2019-03-07 20:20:23 -08:00
|
|
|
- script: ./CI/install-script-win.cmd
|
|
|
|
displayName: 'Download / Setup Deps / Run CMake'
|
2019-03-05 22:02:06 -08:00
|
|
|
- task: MSBuild@1
|
|
|
|
displayName: 'Build 32-bit'
|
|
|
|
inputs:
|
|
|
|
msbuildArguments: '/m /p:Configuration=RelWithDebInfo'
|
|
|
|
solution: .\build32\obs-studio.sln
|
2019-03-07 20:20:23 -08:00
|
|
|
- script: ./CI/before-deploy-win.cmd
|
2019-11-25 17:48:14 -08:00
|
|
|
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
|
2019-03-07 20:20:23 -08:00
|
|
|
displayName: 'Before deploy'
|
|
|
|
- task: PublishBuildArtifacts@1
|
2019-11-25 17:48:14 -08:00
|
|
|
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
|
2019-03-07 20:20:23 -08:00
|
|
|
inputs:
|
|
|
|
pathtoPublish: './build'
|
|
|
|
artifactName: winbuild
|
|
|
|
|
|
|
|
- job: 'Build_Windows64'
|
2019-11-25 17:48:14 -08:00
|
|
|
dependsOn: Prebuild
|
|
|
|
variables:
|
|
|
|
prHasCILabel: $[ dependencies.Prebuild.outputs['checkPrLabel.prHasCILabel'] ]
|
2019-03-07 20:20:23 -08:00
|
|
|
pool:
|
2019-11-28 01:47:42 -08:00
|
|
|
vmImage: 'windows-2019'
|
2019-03-07 20:20:23 -08:00
|
|
|
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'
|
2019-03-05 22:02:06 -08:00
|
|
|
- task: MSBuild@1
|
|
|
|
displayName: 'Build 64-bit'
|
|
|
|
inputs:
|
|
|
|
msbuildArguments: '/m /p:Configuration=RelWithDebInfo'
|
|
|
|
solution: .\build64\obs-studio.sln
|
|
|
|
- script: ./CI/before-deploy-win.cmd
|
2019-11-25 17:48:14 -08:00
|
|
|
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
|
2019-03-05 22:02:06 -08:00
|
|
|
displayName: 'Before deploy'
|
|
|
|
- task: PublishBuildArtifacts@1
|
2019-11-25 17:48:14 -08:00
|
|
|
condition: or(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['prHasCILabel'], true))
|
2019-03-05 22:02:06 -08:00
|
|
|
inputs:
|
|
|
|
pathtoPublish: './build'
|
|
|
|
artifactName: winbuild
|
2019-02-21 14:33:58 -08:00
|
|
|
|
2019-03-11 23:48:16 -07:00
|
|
|
- job: 'Build_Linux'
|
2019-11-25 17:48:14 -08:00
|
|
|
dependsOn: Prebuild
|
|
|
|
variables:
|
|
|
|
prHasCILabel: $[ dependencies.Prebuild.outputs['checkPrLabel.prHasCILabel'] ]
|
2019-03-11 23:48:16 -07:00
|
|
|
pool:
|
2020-03-21 21:31:36 -07:00
|
|
|
vmImage: 'ubuntu-18.04'
|
2019-03-11 23:48:16 -07:00
|
|
|
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: |
|
2020-02-09 17:10:57 -08:00
|
|
|
set -e
|
2019-03-11 23:48:16 -07:00
|
|
|
cd ./build
|
|
|
|
make -j4
|
|
|
|
cd -
|
|
|
|
displayName: 'Build'
|
|
|
|
|