ci: build.sh: Add a wrapper function over the 'rpmbuild' 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:
Erik Skultety 2023-08-24 15:49:19 +02:00
parent 07a8556076
commit da0a354476
1 changed files with 9 additions and 0 deletions

View File

@ -76,3 +76,12 @@ run_potfile() {
run_build
}
run_rpmbuild() {
run_dist
run_cmd rpmbuild \
--clean \
--nodeps \
--define "_without_mingw 1" \
-ta build/meson-dist/libvirt-*.tar.xz
}