2019-02-21 16:33:58 -06:00
|
|
|
# https://aka.ms/yaml
|
|
|
|
|
|
|
|
variables:
|
|
|
|
CMAKE_PREFIX_PATH: /usr/local/opt/qt5/lib/cmake
|
2019-03-06 00:02:06 -06:00
|
|
|
CEF_BUILD_VERSION: 3.3282.1726.gc8368c8
|
|
|
|
CEF_VERSION: 3.3440.1805.gbe070f9
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: 'Build_macOS'
|
|
|
|
pool:
|
|
|
|
vmImage: 'macos-10.13'
|
|
|
|
steps:
|
|
|
|
- script: git submodule update --init --recursive
|
|
|
|
displayName: 'Checkout Submodules'
|
|
|
|
- script: ./CI/install-dependencies-osx.sh
|
|
|
|
displayName: 'Install Dependencies'
|
2019-02-21 16:33:58 -06:00
|
|
|
|
2019-03-06 00:02:06 -06:00
|
|
|
- script: ./CI/before-script-osx.sh
|
|
|
|
displayName: 'Cmake'
|
2019-02-21 16:33:58 -06:00
|
|
|
|
2019-03-06 00:02:06 -06:00
|
|
|
- bash: |
|
|
|
|
cd ./build
|
|
|
|
make -j4
|
|
|
|
cd -
|
|
|
|
displayName: 'Build'
|
2019-02-21 16:33:58 -06:00
|
|
|
|
2019-03-06 00:02:06 -06:00
|
|
|
- script: ./CI/before-deploy-osx.sh
|
|
|
|
condition: ne(variables['Build.Reason'], 'PullRequest')
|
|
|
|
displayName: 'Before Deploy'
|
2019-02-21 16:33:58 -06:00
|
|
|
|
2019-03-06 00:02:06 -06:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
condition: ne(variables['Build.Reason'], 'PullRequest')
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: './nightly'
|
|
|
|
artifactName: build
|
2019-02-21 16:33:58 -06:00
|
|
|
|
2019-03-06 00:02:06 -06:00
|
|
|
- job: 'Build_Windows'
|
|
|
|
pool:
|
|
|
|
vmImage: 'vs2017-win2016'
|
|
|
|
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'
|
|
|
|
- task: MSBuild@1
|
|
|
|
displayName: 'Build 32-bit'
|
|
|
|
inputs:
|
|
|
|
msbuildArguments: '/m /p:Configuration=RelWithDebInfo'
|
|
|
|
solution: .\build32\obs-studio.sln
|
|
|
|
- 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: ne(variables['Build.Reason'], 'PullRequest')
|
|
|
|
displayName: 'Before deploy'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
condition: ne(variables['Build.Reason'], 'PullRequest')
|
|
|
|
inputs:
|
|
|
|
pathtoPublish: './build'
|
|
|
|
artifactName: winbuild
|
2019-02-21 16:33:58 -06:00
|
|
|
|