mirror of https://gitee.com/openkylin/libvirt.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 <eskultet@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
5ee2851481
commit
5452ca9b1c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue