Skip to content

Commit

Permalink
Download and use cmake 3.21
Browse files Browse the repository at this point in the history
  • Loading branch information
djova-dolby committed Mar 23, 2024
1 parent fd9f24e commit 52181e0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,17 @@ jobs:
- name: 'Fix ffmpeg installation'
run: choco install ffmpeg

- name: Install cmake 3.21 and set path
run: |
Invoke-WebRequest -Uri "https://github.com/Kitware/CMake/releases/download/v3.21.3/cmake-3.21.3-windows-x86_64.zip" -OutFile "cmake.zip"
Expand-Archive "cmake.zip" -DestinationPath "C:\Program Files\cmake-3.21"
$newPath = "C:\Program Files\cmake-3.21\cmake-3.21.3-windows-x86_64\bin;" + $env:PATH
echo "PATH=$newPath" >> $GITHUB_ENV
echo "$env:PATH =$newPath"
Remove-Item cmake.zip
cmake --version
shell: powershell

- name: 'Setup plugings'
run: |
git stash
Expand All @@ -505,10 +516,20 @@ jobs:
git submodule update --init --recursive
- name: 'Build OBS with no NDI'
run: ./CI/windows/02_build_obs.ps1 -BuildArch ${{ env.TARGET_ARCH }} -Vendor $env:VENDOR
run: |
$newPath = "C:\Program Files\cmake-3.21\cmake-3.21.3-windows-x86_64\bin;" + $env:PATH
echo "PATH=$newPath" >> $GITHUB_ENV
echo "$env:PATH =$newPath"
./CI/windows/02_build_obs.ps1 -BuildArch ${{ env.TARGET_ARCH }} -Vendor $env:VENDOR
shell: powershell

- name: 'Build OBS with NDI'
run: ./CI/windows/02_build_obs.ps1 -BuildArch ${{ env.TARGET_ARCH }} -Vendor $env:VENDOR -Ndi ON
run: |
$newPath = "C:\Program Files\cmake-3.21\cmake-3.21.3-windows-x86_64\bin;" + $env:PATH
echo "PATH=$newPath" >> $GITHUB_ENV
echo "$env:PATH =$newPath"
./CI/windows/02_build_obs.ps1 -BuildArch ${{ env.TARGET_ARCH }} -Vendor $env:VENDOR -Ndi ON
shell: powershell

- name: 'Prepare package'
run: ./CI/windows/before-deploy-win.cmd ${{ env.VENDOR }}
Expand Down
3 changes: 0 additions & 3 deletions CI/windows/02_build_obs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ function Configure-OBS {
"-DCOPIED_DEPENDENCIES=OFF",
"-DCOPY_DEPENDENCIES=ON",
"-DBUILD_FOR_DISTRIBUTION=ON",
"-DFFMPEG_DIR:PATH=C:\ProgramData\chocolatey\lib\ffmpeg",
"-DAVCODEC_INCLUDE_DIR:PATH=C:\ProgramData\chocolatey\lib\ffmpeg\include",
"-DAVCODEC_LIBRARY:FILEPATH=C:\ProgramData\chocolatey\lib\ffmpeg\lib\avcodec.lib",
"$(if (Test-Path Env:CI) { "-DOBS_BUILD_NUMBER=${Env:GITHUB_RUN_ID}" })",
"$(if (Test-Path Variable:$Quiet) { "-Wno-deprecated -Wno-dev --log-level=ERROR" })",
"-Dlibwebrtc_DIR=`"C:/Program Files/libwebrtc/cmake`"",
Expand Down

0 comments on commit 52181e0

Please sign in to comment.