Skip to content

Commit

Permalink
Test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
msobo1 committed Oct 17, 2023
1 parent fc6c115 commit cc441b0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ env:
LIBWEBRTC_VERSION: "112.0"
VENDOR: "Millicast"
USE_RELEASE_NOTES_FROM_FILE: 'false'
BUILD_TYPE: "RelWithDebInfo"

jobs:
preprocessing:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
27 changes: 27 additions & 0 deletions CI/linux/04_do_magic_for_ndi.sh
Original file line number Diff line number Diff line change
@@ -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 ..

0 comments on commit cc441b0

Please sign in to comment.