Skip to content

Commit

Permalink
CI(Linux): Change install path for OBS 28
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro committed Nov 2, 2022
1 parent d26e365 commit 9fdf1d1
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,27 @@ jobs:
OBS_QT_VERSION_MAJOR=${{ steps.obsdeps.outputs.OBS_QT_VERSION_MAJOR }}
mkdir build
cd build
case ${{ matrix.obs }} in
27)
cmake_opt=(
-D CMAKE_INSTALL_LIBDIR=/usr/lib/
-D CPACK_DEBIAN_PACKAGE_DEPENDS='obs-studio (>= 27), obs-studio (<< 28)'
)
;;
28)
cmake_opt=(
-D CPACK_DEBIAN_PACKAGE_DEPENDS='obs-studio (>= 28)'
)
;;
esac
cmake .. \
-D QT_VERSION=$OBS_QT_VERSION_MAJOR \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
-D LINUX_PORTABLE=OFF -D CMAKE_INSTALL_LIBDIR=/usr/lib/ \
-D LINUX_PORTABLE=OFF \
-D CPACK_DEBIAN_PACKAGE_SHLIBDEPS=ON \
-D PKG_SUFFIX=-obs${{ matrix.obs }}-${{ matrix.ubuntu }}-x86_64
-D PKG_SUFFIX=-obs${{ matrix.obs }}-${{ matrix.ubuntu }}-x86_64 \
"${cmake_opt[@]}"
make -j4
make package
echo "FILE_NAME=$(find $PWD -name '*.deb' | head -n 1)" >> $GITHUB_ENV
Expand All @@ -68,7 +82,11 @@ jobs:
. ci/ci_includes.generated.sh
set -ex
sudo apt install '${{ env.FILE_NAME }}'
ldd /usr/lib/obs-plugins/${PLUGIN_NAME}.so > ldd.out
case ${{ matrix.obs }} in
27) plugins_dir=/usr/lib/obs-plugins ;;
28) plugins_dir=/usr/lib/x86_64-linux-gnu/obs-plugins ;;
esac
ldd $plugins_dir/${PLUGIN_NAME}.so > ldd.out
if grep not.found ldd.out ; then
echo "Error: unresolved shared object." >&2
exit 1
Expand Down

0 comments on commit 9fdf1d1

Please sign in to comment.