Skip to content

Commit

Permalink
Try to work out where gstreamer is
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEntangledAndy committed Dec 22, 2022
1 parent fcf14e1 commit ac6ea6c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,17 @@ jobs:
choco install -y --no-progress gstreamer --version=1.20.0
choco install -y --no-progress gstreamer-devel --version=1.20.0
echo "Updating Cargo environment"
echo "C:\gstreamer\1.0\x86_64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "c:\gstreamer\1.0\msvc_x86_64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "GSTREAMER_1_0_ROOT_X86_64=C:\gstreamer\1.0\x86_64\" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
refreshenv
if (Test-Path -Path 'C:\gstreamer\1.0\msvc_x86_64\' -PathType Container) {
$env:GSTREAMER_1_0_ROOT_MSVC_X86_64 = 'C:\gstreamer\1.0\msvc_x86_64\'
} elseif (Test-Path -Path 'D:\gstreamer\1.0\msvc_x86_64\' -PathType Container) {
$env:GSTREAMER_1_0_ROOT_MSVC_X86_64 = 'D:\gstreamer\1.0\msvc_x86_64\'
} else {
throw "Cannot find gstreamer path"
}
echo "GSTREAMER_1_0_ROOT_MSVC_X86_64=$env:GSTREAMER_1_0_ROOT_MSVC_X86_64"
echo "GSTREAMER_1_0_ROOT_MSVC_X86_64=$env:GSTREAMER_1_0_ROOT_MSVC_X86_64" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "$env:%GSTREAMER_1_0_ROOT_MSVC_X86_64%\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- if: runner.os == 'macOS'
name: Install Gstreamer on macOS
run: |
Expand Down

0 comments on commit ac6ea6c

Please sign in to comment.