mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-14 15:55:07 +00:00
ci: Always specify all important build variables
This commit is contained in:
parent
f8ecf61a7b
commit
ceb21cc386
1 changed files with 42 additions and 10 deletions
40
.github/workflows/main.yml
vendored
40
.github/workflows/main.yml
vendored
|
@ -16,7 +16,6 @@ concurrency:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CACHE_VERSION: 2
|
CACHE_VERSION: 2
|
||||||
LIBAOM_VERSION: "3.2.0.0"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -100,6 +99,17 @@ jobs:
|
||||||
fi
|
fi
|
||||||
echo "::set-output name=obs_version::$(cd "${{ github.workspace }}/third-party/obs-studio" && git describe --tags --long)"
|
echo "::set-output name=obs_version::$(cd "${{ github.workspace }}/third-party/obs-studio" && git describe --tags --long)"
|
||||||
|
|
||||||
|
# CMake Flags
|
||||||
|
if [[ "${{ matrix.CMAKE_GENERATOR }}" != "" ]]; then
|
||||||
|
echo "::set-output name=cmake_generator::-G \"${{ matrix.CMAKE_GENERATOR }}\""
|
||||||
|
fi
|
||||||
|
if [[ "${{ matrix.CMAKE_GENERATOR_TOOLSET }}" != "" ]]; then
|
||||||
|
echo "::set-output name=cmake_generator_toolset::-T \"${{ matrix.CMAKE_GENERATOR_TOOLSET }}\""
|
||||||
|
fi
|
||||||
|
if [[ "${{ matrix.CMAKE_GENERATOR_PLATFORM }}" != "" ]]; then
|
||||||
|
echo "::set-output name=cmake_generator_platform::-A \"${{ matrix.CMAKE_GENERATOR_PLATFORM }}\""
|
||||||
|
fi
|
||||||
|
|
||||||
- name: "Dependencies: Windows"
|
- name: "Dependencies: Windows"
|
||||||
if: startsWith( matrix.runner, 'windows' )
|
if: startsWith( matrix.runner, 'windows' )
|
||||||
run: |
|
run: |
|
||||||
|
@ -225,6 +235,8 @@ jobs:
|
||||||
id: obs
|
id: obs
|
||||||
if: ${{ steps.obs-cache.outputs.cache-hit != 'true' }}
|
if: ${{ steps.obs-cache.outputs.cache-hit != 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
CMAKE_BUILD_TYPE: "Release"
|
||||||
run: |
|
run: |
|
||||||
# Extra requirements by libobs on Linux.
|
# Extra requirements by libobs on Linux.
|
||||||
if [[ "${{ matrix.runner }}" = ubuntu* ]]; then
|
if [[ "${{ matrix.runner }}" = ubuntu* ]]; then
|
||||||
|
@ -240,7 +252,13 @@ jobs:
|
||||||
cmake \
|
cmake \
|
||||||
-S "${{ github.workspace }}/third-party/obs-studio" \
|
-S "${{ github.workspace }}/third-party/obs-studio" \
|
||||||
-B "${{ github.workspace }}/build/obs" \
|
-B "${{ github.workspace }}/build/obs" \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
${{ steps.info.outputs.cmake_generator }} \
|
||||||
|
${{ steps.info.outputs.cmake_generator_toolset }} \
|
||||||
|
${{ steps.info.outputs.cmake_generator_platform }} \
|
||||||
|
-DDCMAKE_OSX_ARCHITECTURES="${{ matrix.CMAKE_OSX_ARCHITECTURES }}" \
|
||||||
|
-DCMAKE_OSX_DEPLOYMENT_TARGET="${{ matrix.CMAKE_OSX_DEPLOYMENT_TARGET }}" \
|
||||||
|
-DCMAKE_SYSTEM_VERSION="${{ matrix.CMAKE_SYSTEM_VERSION }}" \
|
||||||
|
-DCMAKE_BUILD_TYPE="${{ env.CMAKE_BUILD_TYPE }}" \
|
||||||
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/build/obs/install" \
|
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/build/obs/install" \
|
||||||
-DENABLE_PLUGINS=OFF \
|
-DENABLE_PLUGINS=OFF \
|
||||||
-DENABLE_UI=OFF \
|
-DENABLE_UI=OFF \
|
||||||
|
@ -264,6 +282,13 @@ jobs:
|
||||||
cmake \
|
cmake \
|
||||||
-S "${{ github.workspace }}" \
|
-S "${{ github.workspace }}" \
|
||||||
-B "${{ github.workspace }}/build/debug" \
|
-B "${{ github.workspace }}/build/debug" \
|
||||||
|
${{ steps.info.outputs.cmake_generator }} \
|
||||||
|
${{ steps.info.outputs.cmake_generator_toolset }} \
|
||||||
|
${{ steps.info.outputs.cmake_generator_platform }} \
|
||||||
|
-DDCMAKE_OSX_ARCHITECTURES="${{ matrix.CMAKE_OSX_ARCHITECTURES }}" \
|
||||||
|
-DCMAKE_OSX_DEPLOYMENT_TARGET="${{ matrix.CMAKE_OSX_DEPLOYMENT_TARGET }}" \
|
||||||
|
-DCMAKE_SYSTEM_VERSION="${{ matrix.CMAKE_SYSTEM_VERSION }}" \
|
||||||
|
-DCMAKE_BUILD_TYPE="${{ env.CMAKE_BUILD_TYPE }}" \
|
||||||
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/build/debug/install" \
|
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/build/debug/install" \
|
||||||
-DPACKAGE_NAME="streamfx-${{ matrix.package_name }}-debug" \
|
-DPACKAGE_NAME="streamfx-${{ matrix.package_name }}-debug" \
|
||||||
-DPACKAGE_PREFIX="${{ github.workspace }}/build/package" \
|
-DPACKAGE_PREFIX="${{ github.workspace }}/build/package" \
|
||||||
|
@ -274,7 +299,7 @@ jobs:
|
||||||
-DFFmpeg_DIR="${{ github.workspace }}/build/obsdeps" \
|
-DFFmpeg_DIR="${{ github.workspace }}/build/obsdeps" \
|
||||||
-DCURL_DIR="${{ github.workspace }}/build/obsdeps"
|
-DCURL_DIR="${{ github.workspace }}/build/obsdeps"
|
||||||
if [[ "${{ matrix.runner }}" = windows* ]]; then
|
if [[ "${{ matrix.runner }}" = windows* ]]; then
|
||||||
cmake --build "build/debug" --config ${{ env.CMAKE_BUILD_TYPE }} --target INSTALL
|
cmake --build "build/debug" --config ${{ env.CMAKE_BUILD_TYPE }} --target install
|
||||||
elif [[ "${{ matrix.runner }}" = ubuntu* ]]; then
|
elif [[ "${{ matrix.runner }}" = ubuntu* ]]; then
|
||||||
cmake --build "build/debug" --config ${{ env.CMAKE_BUILD_TYPE }} --target install
|
cmake --build "build/debug" --config ${{ env.CMAKE_BUILD_TYPE }} --target install
|
||||||
elif [[ "${{ matrix.runner }}" = macos* ]]; then
|
elif [[ "${{ matrix.runner }}" = macos* ]]; then
|
||||||
|
@ -289,6 +314,13 @@ jobs:
|
||||||
cmake \
|
cmake \
|
||||||
-S "${{ github.workspace }}" \
|
-S "${{ github.workspace }}" \
|
||||||
-B "${{ github.workspace }}/build/release" \
|
-B "${{ github.workspace }}/build/release" \
|
||||||
|
${{ steps.info.outputs.cmake_generator }} \
|
||||||
|
${{ steps.info.outputs.cmake_generator_toolset }} \
|
||||||
|
${{ steps.info.outputs.cmake_generator_platform }} \
|
||||||
|
-DDCMAKE_OSX_ARCHITECTURES="${{ matrix.CMAKE_OSX_ARCHITECTURES }}" \
|
||||||
|
-DCMAKE_OSX_DEPLOYMENT_TARGET="${{ matrix.CMAKE_OSX_DEPLOYMENT_TARGET }}" \
|
||||||
|
-DCMAKE_SYSTEM_VERSION="${{ matrix.CMAKE_SYSTEM_VERSION }}" \
|
||||||
|
-DCMAKE_BUILD_TYPE="${{ env.CMAKE_BUILD_TYPE }}" \
|
||||||
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/build/release/install" \
|
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/build/release/install" \
|
||||||
-DPACKAGE_NAME="streamfx-${{ matrix.package_name }}" \
|
-DPACKAGE_NAME="streamfx-${{ matrix.package_name }}" \
|
||||||
-DPACKAGE_PREFIX="${{ github.workspace }}/build/package" \
|
-DPACKAGE_PREFIX="${{ github.workspace }}/build/package" \
|
||||||
|
@ -299,7 +331,7 @@ jobs:
|
||||||
-DFFmpeg_DIR="${{ github.workspace }}/build/obsdeps" \
|
-DFFmpeg_DIR="${{ github.workspace }}/build/obsdeps" \
|
||||||
-DCURL_DIR="${{ github.workspace }}/build/obsdeps"
|
-DCURL_DIR="${{ github.workspace }}/build/obsdeps"
|
||||||
if [[ "${{ matrix.runner }}" = windows* ]]; then
|
if [[ "${{ matrix.runner }}" = windows* ]]; then
|
||||||
cmake --build "build/release" --config ${{ env.CMAKE_BUILD_TYPE }} --target INSTALL
|
cmake --build "build/release" --config ${{ env.CMAKE_BUILD_TYPE }} --target install
|
||||||
elif [[ "${{ matrix.runner }}" = ubuntu* ]]; then
|
elif [[ "${{ matrix.runner }}" = ubuntu* ]]; then
|
||||||
cmake --build "build/release" --config ${{ env.CMAKE_BUILD_TYPE }} --target install/strip
|
cmake --build "build/release" --config ${{ env.CMAKE_BUILD_TYPE }} --target install/strip
|
||||||
elif [[ "${{ matrix.runner }}" = macos* ]]; then
|
elif [[ "${{ matrix.runner }}" = macos* ]]; then
|
||||||
|
|
Loading…
Reference in a new issue