From cc441b0dee53639a9c901cb8c094284aca1fe314 Mon Sep 17 00:00:00 2001 From: Marek Sobolak Date: Tue, 17 Oct 2023 12:04:34 +0200 Subject: [PATCH] Test matrix --- .github/workflows/main.yml | 5 +++-- CI/linux/04_do_magic_for_ndi.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100755 CI/linux/04_do_magic_for_ndi.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4396a657d..a88df0326 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,6 +45,7 @@ env: LIBWEBRTC_VERSION: "112.0" VENDOR: "Millicast" USE_RELEASE_NOTES_FROM_FILE: 'false' + BUILD_TYPE: "RelWithDebInfo" jobs: preprocessing: @@ -85,7 +86,7 @@ jobs: libwebrtc_asset_pattern: "^libWebRTC-${{ needs.preprocessing.outputs.LIBWEBRTC_VERSION }}-.*64-Release-.*.sh.*" install_dependencies: git submodule update --init --recursive && ./CI/linux/01_install_dependencies.sh --disable-pipewire build_obs: ./CI/linux/02_build_obs.sh --disable-pipewire --vendor ${{ needs.preprocessing.outputs.VENDOR }} --ndi - create_artifact: ./CI/linux/03_package_obs.sh --vendor ${{ needs.preprocessing.outputs.VENDOR }} --ndi + create_artifact: ./CI/linux/04_do_magic_for_ndi.sh && ./CI/linux/03_package_obs.sh --vendor ${{ needs.preprocessing.outputs.VENDOR }} --ndi target_arch: '' - mode: ubuntu22-no-ndi @@ -105,7 +106,7 @@ jobs: libwebrtc_asset_pattern: "^libWebRTC-${{ needs.preprocessing.outputs.LIBWEBRTC_VERSION }}-.*64-Release-.*.sh.*" install_dependencies: git submodule update --init --recursive && ./CI/linux/01_install_dependencies.sh --disable-pipewire build_obs: ./CI/linux/02_build_obs.sh --disable-pipewire --vendor ${{ needs.preprocessing.outputs.VENDOR }} --ndi - create_artifact: ./CI/linux/03_package_obs.sh --vendor ${{ needs.preprocessing.outputs.VENDOR }} --ndi + create_artifact: ./CI/linux/04_do_magic_for_ndi.sh && ./CI/linux/03_package_obs.sh --vendor ${{ needs.preprocessing.outputs.VENDOR }} --ndi target_arch: '' - mode: macos-no-ndi diff --git a/CI/linux/04_do_magic_for_ndi.sh b/CI/linux/04_do_magic_for_ndi.sh new file mode 100755 index 000000000..15a4c5a72 --- /dev/null +++ b/CI/linux/04_do_magic_for_ndi.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +# This script was created only for needs of test CICD. Process needs to be evaluated and improved by developers. +if [[ lsb_release -a == *"20.04"* ]];then + UBUNTU_VERSION=2004 +else + UBUNTU_VERSION=2204 +fi + +export OBS_VERSION=${OBS_VERSION}_${UBUNTU_VERSION} + +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 ..