mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
ci: Start building RPMs
We lost this coverage during the move from CentOS CI to GitLab CI,
and it's high time we brought it back.
Building RPMs is currently skipped for
* openSUSE, which is not supported by our spec file;
* clang builds, where rpmbuild fails with
meson.build:1:0: ERROR: Unable to determine dynamic linker
* targets where we install Meson from PyPi, because that doesn't
bring in the necessary RPM macros.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -58,6 +58,10 @@ stages:
|
|||||||
ninja -C build;
|
ninja -C build;
|
||||||
ninja -C build test;
|
ninja -C build test;
|
||||||
fi
|
fi
|
||||||
|
- if test -x /usr/bin/rpmbuild && test "$RPM" != "skip";
|
||||||
|
then
|
||||||
|
rpmbuild --nodeps -ta build/meson-dist/libvirt-*.tar.xz;
|
||||||
|
fi
|
||||||
|
|
||||||
# Jobs that we delegate to Cirrus CI because they require an operating
|
# Jobs that we delegate to Cirrus CI because they require an operating
|
||||||
# system other than Linux. These jobs will only run if the required
|
# system other than Linux. These jobs will only run if the required
|
||||||
@@ -302,6 +306,7 @@ x64-centos-7:
|
|||||||
# meson dist fails on CentOS 7 because of old git that fails to clone
|
# meson dist fails on CentOS 7 because of old git that fails to clone
|
||||||
# from shallow git repository which is done when running meson dist
|
# from shallow git repository which is done when running meson dist
|
||||||
DIST: skip
|
DIST: skip
|
||||||
|
RPM: skip
|
||||||
|
|
||||||
x64-centos-8:
|
x64-centos-8:
|
||||||
<<: *native_build_job_definition
|
<<: *native_build_job_definition
|
||||||
@@ -309,6 +314,7 @@ x64-centos-8:
|
|||||||
- x64-centos-8-container
|
- x64-centos-8-container
|
||||||
variables:
|
variables:
|
||||||
NAME: centos-8
|
NAME: centos-8
|
||||||
|
RPM: skip
|
||||||
|
|
||||||
x64-centos-8-clang:
|
x64-centos-8-clang:
|
||||||
<<: *native_build_job_definition
|
<<: *native_build_job_definition
|
||||||
@@ -317,6 +323,7 @@ x64-centos-8-clang:
|
|||||||
variables:
|
variables:
|
||||||
NAME: centos-8
|
NAME: centos-8
|
||||||
CC: clang
|
CC: clang
|
||||||
|
RPM: skip
|
||||||
|
|
||||||
x64-centos-stream:
|
x64-centos-stream:
|
||||||
<<: *native_build_job_definition
|
<<: *native_build_job_definition
|
||||||
@@ -324,6 +331,7 @@ x64-centos-stream:
|
|||||||
- x64-centos-stream-container
|
- x64-centos-stream-container
|
||||||
variables:
|
variables:
|
||||||
NAME: centos-stream
|
NAME: centos-stream
|
||||||
|
RPM: skip
|
||||||
|
|
||||||
x64-fedora-31:
|
x64-fedora-31:
|
||||||
<<: *native_build_job_definition
|
<<: *native_build_job_definition
|
||||||
@@ -331,6 +339,7 @@ x64-fedora-31:
|
|||||||
- x64-fedora-31-container
|
- x64-fedora-31-container
|
||||||
variables:
|
variables:
|
||||||
NAME: fedora-31
|
NAME: fedora-31
|
||||||
|
RPM: skip
|
||||||
|
|
||||||
x64-fedora-32:
|
x64-fedora-32:
|
||||||
<<: *native_build_job_definition
|
<<: *native_build_job_definition
|
||||||
@@ -353,6 +362,7 @@ x64-fedora-rawhide-clang:
|
|||||||
variables:
|
variables:
|
||||||
NAME: fedora-rawhide
|
NAME: fedora-rawhide
|
||||||
CC: clang
|
CC: clang
|
||||||
|
RPM: skip
|
||||||
|
|
||||||
x64-opensuse-151:
|
x64-opensuse-151:
|
||||||
<<: *native_build_job_definition
|
<<: *native_build_job_definition
|
||||||
@@ -360,6 +370,7 @@ x64-opensuse-151:
|
|||||||
- x64-opensuse-151-container
|
- x64-opensuse-151-container
|
||||||
variables:
|
variables:
|
||||||
NAME: opensuse-151
|
NAME: opensuse-151
|
||||||
|
RPM: skip
|
||||||
|
|
||||||
x64-ubuntu-1804:
|
x64-ubuntu-1804:
|
||||||
<<: *native_build_job_definition
|
<<: *native_build_job_definition
|
||||||
|
|||||||
Reference in New Issue
Block a user