Skip to content

Commit

Permalink
fix: failing release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BartSte committed Jan 26, 2024
1 parent 0624f02 commit 403b67b
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions scripts/build-libva
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ remove_libva_apt() {
sudo apt-get -y remove libva2 || true
}

install_deps_apt() {
echo "Installing apt dependencies"
sudo apt-get -y install autogen automake cmake git libdrm-dev libtool libwayland-dev libx11-dev libx11-xcb-dev libx11-xcb-perl libx11-xcb1 libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb1-dev libxext-dev libxfixes-dev meson pkg-config xorg-dev
}

remove_libva_pacman() {
echo "Removing libva"
sudo pacman -R --noconfirm -dd libva || true
}

install_deps_apt() {
echo "Installing apt dependencies"
sudo apt-get -y install autogen automake cmake git libdrm-dev libtool libwayland-dev libx11-dev libx11-dev libx11-xcb-perl libx11-xcb1 libxcb-dri3-dev libxcb1-dev libxext-dev libxfixes-dev meson pkg-config xorg-dev
}

install_deps_pacman() {
echo "Installing pacman dependencies"
sudo pacman -S --noconfirm git cmake pkg-config meson libdrm automake libtool autogen xorg wayland libxext libxfixes
Expand All @@ -92,5 +92,16 @@ build_libva() {
cd "$dir"
}

check() {
echo "Checking libva"
if ! pkg-config --exists libva libva-drm libva-x11 libva-wayland; then
echo "One of the following packages is missing: libva, libva-drm, libva-x11, libva-wayland"
exit 1
else
echo "libva, libva-drm, libva-x11, and libva-wayland are installed"
fi
}

install_deps
build_libva
check

0 comments on commit 403b67b

Please sign in to comment.