CI: Update build script for Ubuntu to require Ubuntu 24.04

Also defaults to Qt6 and x86_64 builds, thus no toolchain file is
needed and no additional data in buildspec is needed either.
This commit is contained in:
PatTheMav
2024-09-18 16:08:38 -04:00
committed by Ryan Foster
parent 51f24cb82a
commit c2ea78c31f
4 changed files with 9 additions and 35 deletions
+6
View File
@@ -13,6 +13,12 @@ if [[ -f /etc/os-release ]] {
log_group
return 2
}
autoload -Uz is-at-least && if ! is-at-least 24.04 ${dist_version}; then
log_error "Not running on a recent-enough Ubuntu distribution. Aborting"
log_group
return 2
fi
} else {
log_error "Unable to determine local Linux distribution, but Ubuntu is required. Aborting"
log_group
+3 -24
View File
@@ -14,12 +14,6 @@ local -a curl_opts=(--show-error --silent --location -O ${@})
pushd ${project_root}
typeset -g QT_VERSION
read -r QT_VERSION <<< \
"$(jq -r --arg target "${target}" \
'.platformConfig[$target] | { qtVersion } | join(" ")' \
${buildspec_file})"
log_group 'Installing obs-studio build dependencies...'
mkdir -p ${project_root}/.deps
@@ -90,21 +84,6 @@ sudo apt-get install -y --no-install-recommends \
libpulse-dev libsndio-dev libspeexdsp-dev libudev-dev libv4l-dev libva-dev libvlc-dev \
libpci-dev libdrm-dev \
nlohmann-json3-dev libwebsocketpp-dev libasio-dev libqrcodegencpp-dev \
libffmpeg-nvenc-dev librist-dev libsrt-openssl-dev
if [[ ${target##*-} == x86_64 ]] sudo apt-get install -y --no-install-recommends libvpl-dev libvpl2
local -a _qt_packages=()
if (( QT_VERSION == 6 )) {
_qt_packages+=(
qt6-base-dev
libqt6svg6-dev
qt6-base-private-dev
)
} else {
log_error "Unsupported Qt version '${QT_VERSION}' specified."
return 2
}
sudo apt-get install -y --no-install-recommends ${_qt_packages}
libffmpeg-nvenc-dev librist-dev libsrt-openssl-dev \
qt6-base-dev libqt6svg6-dev qt6-base-private-dev \
libvpl-dev libvpl2