Try to set windows gstreamer drive via the SYSTEMDRIVE variable
This commit is contained in:
1 parent
3e6c14f7cb
commit
e2ced4d76e
1 file changed
+1
-9
@@ -23,15 +23,7 @@ jobs:
|
||||
run: |
|
||||
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"
|
||||
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"
|
||||
}
|
||||
$env:GSTREAMER_1_0_ROOT_MSVC_X86_64=$env::SYSTEMDRIVE + '\gstreamer\1.0\msvc_x86_64\'
|
||||
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 "%GSTREAMER_1_0_ROOT_MSVC_X86_64%\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
|
||||
Reference in new issue
Block a user