Files
UltraGrid/.github/scripts/Windows/build_aja.ps1
Martin Pulec 3211d3c130 GitHub CI: don't hardcode SDK URL, use a secret
Do not hardcode SDK URL, use one from a secret (if present).

+ remove SDK_PASS secret - assume that the URL path is already
  obfuscated
2020-06-24 14:27:01 +02:00

13 lines
355 B
PowerShell

#Set-PSDebug -Trace 1
# Build AJA
if (${env:SDK_URL}) {
Invoke-WebRequest ${env:SDK_URL}/ntv2sdkwin.zip -OutFile aja.zip
Expand-Archive -LiteralPath 'aja.zip' -DestinationPath 'C:\'
Remove-Item aja.zip
mv c:\ntv2sdk* c:\AJA
cd c:\AJA
MSBuild.exe ntv2_vs12.sln -p:PlatformToolset=v142 -p:Configuration=Release -p:Platform=x64 -t:libajantv2
}