Skip to content
Snippets Groups Projects

chore(ci): testing U24 build

Open Raphael Defosseux requested to merge adding-ubuntu-24.04-noble-support into develop
Files
3
@@ -98,6 +98,25 @@ check_install_udr_deps() {
$SUDO $INSTALLER install $OPTION $PACKAGE_LIST
ret=$?;[[ $ret -ne 0 ]] && return $ret
# Newer versions of cmake are an issue w/ mongo-cxx
# Installing the same version as for U22
if [[ $OS_DISTRO == "ubuntu" ]]; then
case "$(get_distribution_release)" in
"ubuntu24.04")
wget --quiet https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-Linux-x86_64.sh \
-O /tmp/cmake.sh
mkdir -p /opt/cmake-3.22.1
sh /tmp/cmake.sh --prefix=/opt/cmake-3.22.1 --exclude-subdir
mv /usr/bin/cmake /usr/bin/cmake-3.28.3
ln -s /usr/bin/cmake-3.28.3 /usr/bin/cmake
update-alternatives --install /usr/bin/cmake cmake /opt/cmake-3.22.1/bin/cmake 20
rm -f /tmp/cmake.sh
cmake --version
$SUDO $INSTALLER install $OPTION $CMAKE
;;
esac
fi
# Libraries
if [[ $OS_DISTRO == "ubuntu" ]]; then
case "$(get_distribution_release)" in
@@ -107,6 +126,9 @@ check_install_udr_deps() {
"ubuntu22.04")
specific_packages="libconfig++-dev libasio-dev libboost-all-dev libasan6"
;;
"ubuntu24.04")
specific_packages="libconfig++-dev libasio-dev libboost-all-dev libasan8"
;;
esac
# removed libspdlog-dev
PACKAGE_LIST="\
@@ -182,10 +204,6 @@ check_install_udr_deps() {
# To be sure, let's install from source all the time for the moment
if [[ $OS_DISTRO == "ubuntu" ]]; then
case "$(get_distribution_release)" in
"ubuntu18.04")
install_libyaml_cpp_from_git $1 $2
ret=$?;[[ $ret -ne 0 ]] && return $ret
;;
"ubuntu20.04")
# definitely, 0.6.2 as PPA installed is not enough
install_libyaml_cpp_from_git $1 $2
@@ -197,6 +215,15 @@ check_install_udr_deps() {
install_libyaml_cpp_from_git $1 $2
ret=$?;[[ $ret -ne 0 ]] && return $ret
;;
"ubuntu24.04")
# looks like we have a good version now
$SUDO $INSTALLER install $OPTION libyaml-cpp0.8 libyaml-cpp-dev
ret=$?;[[ $ret -ne 0 ]] && return $ret
# Having the same location for all OS versions for the moment
# So the dockerfile is common.
# TODO: to be removed once, we drop U22 support
$SUDO ln -s /lib/x86_64-linux-gnu/libyaml-cpp.so.0.8 /usr/local/lib/libyaml-cpp.so.0.8
;;
esac
elif [[ "$OS_BASEDISTRO" == "fedora" ]]; then
# definitely, 0.6.2 as PPA installed is not enough
Loading