]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: build.sh: Add a wrapper function over the 'build' job
authorErik Skultety <eskultet@redhat.com>
Thu, 24 Aug 2023 13:46:53 +0000 (15:46 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 09:36:03 +0000 (11:36 +0200)
This helper is a shell function transcript of its original GitLab CI
counterpart.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ci/build.sh

index 51eeff03e843e63fdeda40f6f61ce20f16405f76..8e8f0c702d275a691ff69cb59050eea8c201dc51 100644 (file)
@@ -37,3 +37,8 @@ run_meson_setup() {
     run_cmd meson setup build --error -Dsystem=true $MESON_OPTS $MESON_ARGS || \
     (cat "${GIT_ROOT}/build/meson-logs/meson-log.txt" && exit 1)
 }
+
+run_build() {
+    test -f $GIT_ROOT/build/build.ninja || run_meson_setup
+    run_cmd meson compile -C build $BUILD_ARGS
+}