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 082f03b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,15 @@ 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
Remove-Item cmake.zip
shell: powershell

- name: 'Setup plugings'
run: |
git stash
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 082f03b

Please sign in to comment.