CI: Split Meson build steps into a separate YAML file
parent
7413c6f577
commit
ef74ee1b76
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
parameters:
|
||||||
|
options: ""
|
||||||
|
workdir: "meson-build"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- bash: meson setup '${{ parameters.workdir }}' ${{ parameters.options }}
|
||||||
|
displayName: 'Configuration (Meson)'
|
||||||
|
- bash: ninja
|
||||||
|
displayName: 'Build (Meson)'
|
||||||
|
workingDirectory: ${{ parameters.workdir }}
|
||||||
|
env:
|
||||||
|
TERM: dumb
|
||||||
|
- bash: |
|
||||||
|
meson test --print-errorlogs \
|
||||||
|
--wrap='valgrind --leak-check=full --track-origins=yes --error-exitcode=99'
|
||||||
|
for file in "$(pwd)"/meson-logs/* ; do
|
||||||
|
echo "##vso[task.uploadfile]${file}"
|
||||||
|
done
|
||||||
|
displayName: 'Tests (Meson)'
|
||||||
|
workingDirectory: ${{ parameters.workdir }}
|
|
@ -22,12 +22,6 @@ jobs:
|
||||||
../autogen.sh && make -j$(nproc) && make check
|
../autogen.sh && make -j$(nproc) && make check
|
||||||
popd
|
popd
|
||||||
displayName: 'Autotools'
|
displayName: 'Autotools'
|
||||||
- script: |
|
- template: .azure-pipelines/steps/meson.yml
|
||||||
meson setup meson-build -Denable-wayland=false
|
parameters:
|
||||||
ninja -C meson-build
|
options: -Denable-wayland=false
|
||||||
meson test -C meson-build --print-errorlogs \
|
|
||||||
--wrap='valgrind --leak-check=full --track-origins=yes --error-exitcode=99'
|
|
||||||
for file in "$(pwd)"/meson-build/meson-logs/* ; do
|
|
||||||
echo "##vso[task.uploadfile]${file}"
|
|
||||||
done
|
|
||||||
displayName: 'Meson'
|
|
||||||
|
|
Loading…
Reference in New Issue