CI: Try builds both with Clang and GCC
parent
510cbdd243
commit
f796bbb8f7
|
@ -1,10 +1,16 @@
|
|||
---
|
||||
parameters:
|
||||
compiler: ""
|
||||
options: ""
|
||||
workdir: "autotools-build"
|
||||
|
||||
steps:
|
||||
- bash: |
|
||||
export COMPILER=${{ parameters.compiler }}
|
||||
case ${COMPILER:-default} in
|
||||
clang ) export CC=clang CXX=clang++ ;;
|
||||
gcc ) export CC=gcc CXX=g++ ;;
|
||||
esac
|
||||
mkdir '${{ parameters.workdir }}' && cd "$_"
|
||||
../autogen.sh ${{ parameters.options }}
|
||||
displayName: 'Configuration (Autotools)'
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
parameters:
|
||||
compiler: ""
|
||||
options: ""
|
||||
wrapper: ""
|
||||
workdir: "meson-build"
|
||||
|
@ -9,6 +10,11 @@ steps:
|
|||
if [[ -x /usr/local/opt/bison/bin/bison ]] ; then
|
||||
export PATH="/usr/local/opt/bison/bin:${PATH}"
|
||||
fi
|
||||
export COMPILER=${{ parameters.compiler }}
|
||||
case ${COMPILER:-default} in
|
||||
clang ) export CC=clang CXX=clang++ ;;
|
||||
gcc ) export CC=gcc CXX=g++ ;;
|
||||
esac
|
||||
meson setup '${{ parameters.workdir }}' ${{ parameters.options }}
|
||||
displayName: 'Configuration (Meson)'
|
||||
- bash: ninja
|
||||
|
|
|
@ -5,21 +5,36 @@ trigger:
|
|||
jobs:
|
||||
- job: 'Meson'
|
||||
dependsOn: []
|
||||
strategy:
|
||||
matrix:
|
||||
Clang:
|
||||
compiler: clang
|
||||
GCC:
|
||||
compiler: gcc
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
steps:
|
||||
- template: .azure-pipelines/steps/dependencies-linux.yml
|
||||
- template: .azure-pipelines/steps/meson.yml
|
||||
parameters:
|
||||
compiler: $(compiler)
|
||||
options: -Denable-wayland=false
|
||||
wrapper: valgrind --leak-check=full --track-origins=yes --error-exitcode=99
|
||||
- job: 'Autotools'
|
||||
dependsOn: []
|
||||
strategy:
|
||||
matrix:
|
||||
Clang:
|
||||
compiler: clang
|
||||
GCC:
|
||||
compiler: gcc
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
steps:
|
||||
- template: .azure-pipelines/steps/dependencies-linux.yml
|
||||
- template: .azure-pipelines/steps/autotools.yml
|
||||
parameters:
|
||||
compiler: $(compiler)
|
||||
- job: 'macOS'
|
||||
dependsOn: []
|
||||
pool:
|
||||
|
|
Loading…
Reference in New Issue