CI: replace the dist script with invocations of the meson-build script

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1317>
This commit is contained in:
Peter Hutterer 2024-02-20 09:55:07 +10:00 committed by Marge Bot
parent cd6840f18e
commit 96b9bbe9fa
2 changed files with 7 additions and 15 deletions

View File

@ -113,7 +113,13 @@ meson-dist:
- $MESON_BUILDDIR/meson-logs/
- $MESON_BUILDDIR/xserver-*/$MESON_BUILDDIR/meson-logs/
script:
- .gitlab-ci/dist.sh
- .gitlab-ci/meson-build.sh --run-dist
- mkdir xserver-tarball
- tar xf $MESON_BUILDDIR/meson-dist/xserver-*.tar.xz -C xserver-tarball --strip-components=1
- .gitlab-ci/meson-build.sh -C xserver-tarball --skip-test --skip-dist --run-install
variables:
MESON_DIST_ARGS: --no-tests
DESTDIR: xserver-tarball/install/
#
# Verify that commit messages are as expected

View File

@ -1,14 +0,0 @@
#!/bin/bash
set -e
set -o xtrace
meson build/
meson dist --no-tests -C build/
cd build
tar xf meson-dist/xserver-*.tar.xz
cd xserver-*/
meson -Dc_args="-fno-common" -Dprefix=/usr -Dwerror=true build/
DESTDIR=$PWD/install/ ninja -j${FDO_CI_CONCURRENT:-4} -C build/ install