Deduplicate the install latest meson steps.
This commit is contained in:
parent
f23ba94d70
commit
7d22d84584
|
@ -9,16 +9,11 @@ jobs:
|
||||||
workspace:
|
workspace:
|
||||||
clean: all
|
clean: all
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
# Ubuntu typically comes with an outdated meson
|
||||||
inputs:
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
versionSpec: '3.6'
|
|
||||||
architecture: 'x64'
|
|
||||||
- script: |
|
- script: |
|
||||||
sudo apt-get install libgtk-3-dev ninja-build
|
sudo apt-get install libgtk-3-dev ninja-build
|
||||||
# Ubuntu typically comes with an outdated meson
|
displayName: 'Install Dependencies'
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
|
||||||
pip install meson
|
|
||||||
displayName: 'Setup'
|
|
||||||
- script: |
|
- script: |
|
||||||
meson setup build --buildtype=release --default-library=shared --backend=ninja
|
meson setup build --buildtype=release --default-library=shared --backend=ninja
|
||||||
displayName: 'Configure'
|
displayName: 'Configure'
|
||||||
|
@ -33,16 +28,10 @@ jobs:
|
||||||
workspace:
|
workspace:
|
||||||
clean: all
|
clean: all
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
inputs:
|
|
||||||
versionSpec: '3.6'
|
|
||||||
architecture: 'x64'
|
|
||||||
- script: |
|
- script: |
|
||||||
sudo apt-get install libgtk-3-dev ninja-build
|
sudo apt-get install libgtk-3-dev ninja-build
|
||||||
# Ubuntu typically comes with an outdated meson
|
displayName: 'Install Dependencies'
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
|
||||||
pip install meson
|
|
||||||
displayName: 'Setup'
|
|
||||||
- script: |
|
- script: |
|
||||||
meson setup build --buildtype=release --default-library=static --backend=ninja
|
meson setup build --buildtype=release --default-library=static --backend=ninja
|
||||||
displayName: 'Configure'
|
displayName: 'Configure'
|
||||||
|
@ -57,14 +46,7 @@ jobs:
|
||||||
workspace:
|
workspace:
|
||||||
clean: all
|
clean: all
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
inputs:
|
|
||||||
versionSpec: '3.6'
|
|
||||||
architecture: 'x64'
|
|
||||||
- script: |
|
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
|
||||||
pip install meson
|
|
||||||
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 --buildtype=release --default-library=shared --backend=vs2017
|
meson setup build --buildtype=release --default-library=shared --backend=vs2017
|
||||||
|
@ -82,20 +64,16 @@ jobs:
|
||||||
workspace:
|
workspace:
|
||||||
clean: all
|
clean: all
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- template: azure-pipelines/install-latest-meson.yml
|
||||||
inputs:
|
|
||||||
versionSpec: '3.6'
|
|
||||||
architecture: 'x64'
|
|
||||||
- script: |
|
- script: |
|
||||||
choco install ninja
|
choco install ninja
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
displayName: 'Install Dependencies'
|
||||||
pip install meson
|
|
||||||
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 --buildtype=release --default-library=static --backend=ninja
|
meson setup build --buildtype=release --default-library=static --backend=ninja
|
||||||
displayName: 'Configure'
|
displayName: 'Configure'
|
||||||
- script: |
|
- script: |
|
||||||
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
ninja -C build
|
ninja -C build
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
# 4 april 2019
|
||||||
|
steps:
|
||||||
|
- task: UsePythonVersion@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: '3.6'
|
||||||
|
architecture: 'x64'
|
||||||
|
- script: |
|
||||||
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
|
pip install meson
|
||||||
|
displayName: 'Install Latest Meson'
|
Loading…
Reference in New Issue