From: Erik Skultety Date: Thu, 24 Aug 2023 13:46:53 +0000 (+0200) Subject: ci: build.sh: Add a wrapper function over the 'build' job X-Git-Tag: v9.8.0-rc1~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5452ca9b1c316f80ad6c7bc5ed0e8e0fc0f91390;p=thirdparty%2Flibvirt.git ci: build.sh: Add a wrapper function over the 'build' job This helper is a shell function transcript of its original GitLab CI counterpart. Signed-off-by: Erik Skultety Reviewed-by: Daniel P. Berrangé --- diff --git a/ci/build.sh b/ci/build.sh index 51eeff03e8..8e8f0c702d 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -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 +}