From ac5a4c14f0d1aa0d621682a8c87cf7367b37eab7 Mon Sep 17 00:00:00 2001 From: Marek Sobolak Date: Wed, 18 Oct 2023 11:58:08 +0200 Subject: [PATCH] Test matrix --- .gitignore | 2 +- CI/linux/02_build_obs_wrapper.sh | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100755 CI/linux/02_build_obs_wrapper.sh diff --git a/.gitignore b/.gitignore index a072a2006..40337f06a 100644 --- a/.gitignore +++ b/.gitignore @@ -118,7 +118,7 @@ tags /repo/ /CI/flatpak/flatpak-github-action-modified-* -*BUILD* +*BUILD*/ UI/webrtcVersion.h /.vs /.idea diff --git a/CI/linux/02_build_obs_wrapper.sh b/CI/linux/02_build_obs_wrapper.sh new file mode 100755 index 000000000..6b0c2ca2a --- /dev/null +++ b/CI/linux/02_build_obs_wrapper.sh @@ -0,0 +1,38 @@ +log () { + echo "#########################" + echo "$1" + echo "#########################" +} +du -sh ${GITHUB_WORKSPACE}/../* + +log "Build Ubuntu ${UBUNTU_VERSION} no-ndi" +${GITHUB_WORKSPACE}/CI/linux/02_build_obs.sh --disable-pipewire --vendor ${VENDOR} + +log "Create artifact Ubuntu ${UBUNTU_VERSION} no-ndi" +${GITHUB_WORKSPACE}/CI/linux/03_package_obs.sh --vendor ${VENDOR} + +log "Prepare obi-ndi plugin" +cd build +cmake .. -DCMAKE_INSTALL_PREFIX=../install +cmake --install . +cd .. +pushd plugins/obs-ndi +mkdir BUILD +cd BUILD +cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DLINUX_PORTABLE=OFF -DUBUNTU_VERSION=${UBUNTU_VERSION} +make -j4 +cpack +cd ../release +mv *.deb ../../../package_${{ vendor }} +popd +cd build +rm CMakeCache.txt +cd .. + +log "Build Ubuntu ${UBUNTU_VERSION} ndi" +${GITHUB_WORKSPACE}/CI/linux/02_build_obs.sh --disable-pipewire --vendor ${VENDOR} --ndi + +log "Create artifact Ubuntu ${UBUNTU_VERSION} no-ndi" +${GITHUB_WORKSPACE}/CI/linux/03_package_obs.sh --vendor ${VENDOR} + +log "Done"