ci: support overriding branch of dependency libs
(cherry picked from commit b3e1edaf1afc28a92dfcc52ab0fb1e8a97b446bb)
This commit is contained in:

committed by
Aleksander Morgado

parent
4174575d5d
commit
4d02e9d463
@@ -20,6 +20,9 @@ stages:
|
|||||||
gobject-introspection python-is-python3 libsystemd-dev
|
gobject-introspection python-is-python3 libsystemd-dev
|
||||||
libpolkit-gobject-1-dev valac libdbus-1-dev
|
libpolkit-gobject-1-dev valac libdbus-1-dev
|
||||||
bash-completion udev policykit-1 help2man
|
bash-completion udev policykit-1 help2man
|
||||||
|
LIBQMI_BRANCH: 'main'
|
||||||
|
LIBQRTR_BRANCH: 'main'
|
||||||
|
LIBMBIM_BRANCH: 'main'
|
||||||
|
|
||||||
build container:
|
build container:
|
||||||
extends:
|
extends:
|
||||||
@@ -40,7 +43,7 @@ before_script:
|
|||||||
.prepare_deps: &prepare_deps
|
.prepare_deps: &prepare_deps
|
||||||
- >
|
- >
|
||||||
if [ "$BUILD_MBIM" == "true" ]; then
|
if [ "$BUILD_MBIM" == "true" ]; then
|
||||||
git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
git clone --depth 1 --branch ${LIBMBIM_BRANCH} https://gitlab.freedesktop.org/mobile-broadband/libmbim.git
|
||||||
pushd libmbim
|
pushd libmbim
|
||||||
meson setup build --prefix=/usr -Dgtk_doc=false -Dintrospection=false -Dbash_completion=false
|
meson setup build --prefix=/usr -Dgtk_doc=false -Dintrospection=false -Dbash_completion=false
|
||||||
ninja -C build
|
ninja -C build
|
||||||
@@ -49,7 +52,7 @@ before_script:
|
|||||||
fi
|
fi
|
||||||
- >
|
- >
|
||||||
if [ "$BUILD_QRTR" == "true" ]; then
|
if [ "$BUILD_QRTR" == "true" ]; then
|
||||||
git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib.git
|
git clone --depth 1 --branch ${LIBQRTR_BRANCH} https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib.git
|
||||||
pushd libqrtr-glib
|
pushd libqrtr-glib
|
||||||
meson setup build --prefix=/usr -Dgtk_doc=false -Dintrospection=false
|
meson setup build --prefix=/usr -Dgtk_doc=false -Dintrospection=false
|
||||||
ninja -C build
|
ninja -C build
|
||||||
@@ -58,7 +61,7 @@ before_script:
|
|||||||
fi
|
fi
|
||||||
- >
|
- >
|
||||||
if [ "$BUILD_QMI" == "true" ]; then
|
if [ "$BUILD_QMI" == "true" ]; then
|
||||||
git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
|
git clone --depth 1 --branch ${LIBQMI_BRANCH} https://gitlab.freedesktop.org/mobile-broadband/libqmi.git
|
||||||
pushd libqmi
|
pushd libqmi
|
||||||
meson setup build --prefix=/usr -Dgtk_doc=false -Dintrospection=false -Dbash_completion=false -Dmbim_qmux=$BUILD_MBIM -Dqrtr=$BUILD_QRTR -Dcollection=basic
|
meson setup build --prefix=/usr -Dgtk_doc=false -Dintrospection=false -Dbash_completion=false -Dmbim_qmux=$BUILD_MBIM -Dqrtr=$BUILD_QRTR -Dcollection=basic
|
||||||
ninja -C build
|
ninja -C build
|
||||||
|
Reference in New Issue
Block a user