Split each of the build types into their own job.

This commit is contained in:
Pietro Gagliardi 2019-04-04 10:46:59 -04:00
parent 60df014315
commit d6c30352ee
1 changed files with 62 additions and 22 deletions

View File

@ -1,8 +1,9 @@
# 31 march 2019 # 31 march 2019
jobs: jobs:
- job: linux64
displayName: 'Linux 64-bit' - job: linux-amd64-shared
displayName: 'Linux 64-bit shared'
pool: pool:
vmImage: 'ubuntu-16.04' vmImage: 'ubuntu-16.04'
workspace: workspace:
@ -19,16 +20,63 @@ jobs:
pip install meson pip install meson
displayName: 'Setup' displayName: 'Setup'
- script: | - script: |
meson setup build-shared --buildtype=release meson setup build --buildtype=release --default-library=shared --backend=ninja
ninja -C build-shared displayName: 'Configure'
displayName: 'Build shared'
- script: | - script: |
meson setup build-static --buildtype=release --default-library=static ninja -C build
ninja -C build-static displayName: 'Build'
displayName: 'Build static'
- job: windowsVS2017Msbuild - job: linux-amd64-static
displayName: 'Windows 64-bit Visual Studio 2017' displayName: 'Linux 64-bit static'
pool:
vmImage: 'ubuntu-16.04'
workspace:
clean: all
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
architecture: 'x64'
- script: |
sudo apt-get install libgtk-3-dev ninja-build
# Ubuntu typically comes with an outdated meson
python -m pip install --upgrade pip setuptools wheel
pip install meson
displayName: 'Setup'
- script: |
meson setup build --buildtype=release --default-library=static --backend=ninja
displayName: 'Configure'
- script: |
ninja -C build
displayName: 'Build'
- job: windows-amd64-msvc2017-shared-msbuild
displayName: 'Windows 64-bit MSVC2017 Shared with MSBuild'
pool:
vmImage: 'vs2017-win2016'
workspace:
clean: all
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
architecture: 'x64'
- script: |
python -m pip install --upgrade pip setuptools wheel
pip install meson
displayName: 'Setup'
- script: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
meson setup build --buildtype=release --default-library=shared --backend=vs2017
displayName: 'Configure'
- task: MSBuild@1
inputs:
solution: 'build/*.sln'
maximumCpuCount: true
displayName: 'Build'
- job: windows-amd64-msvc2017-static-ninja
displayName: 'Windows 64-bit MSVC2017 Static Ninja'
pool: pool:
vmImage: 'vs2017-win2016' vmImage: 'vs2017-win2016'
workspace: workspace:
@ -45,19 +93,11 @@ jobs:
displayName: 'Setup' displayName: 'Setup'
- script: | - script: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
meson setup build-shared --buildtype=release --backend=vs2017 meson setup build --buildtype=release --default-library=static --backend=ninja
displayName: 'Prepare shared build' displayName: 'Configure'
- task: MSBuild@1
inputs:
solution: 'build-shared/*.sln'
maximumCpuCount: true
displayName: 'Build shared'
- script: | - script: |
meson setup build-static --buildtype=release --default-library=static ninja -C build
displayName: 'Prepare static build' displayName: 'Build'
- script: |
ninja -C build-static
displayName: 'Build static'
# mac: # mac:
# imageName: 'macos-10.13' # imageName: 'macos-10.13'