appveyor: use opus artifacts instead of compiling it master
authorRicardo Constantino <wiiaboo@gmail.com>
Wed, 3 Jan 2018 22:53:49 +0000 (22:53 +0000)
committerTimothy B. Terriberry <tterribe@xiph.org>
Mon, 8 Jan 2018 23:38:35 +0000 (15:38 -0800)
.appveyor.yml

index 81ced7d..33ed6bd 100644 (file)
@@ -8,11 +8,15 @@ platform:
 - Win32
 - x64
 
+environment:
+  opus_url: https://ci.appveyor.com/api/projects/$(APPVEYOR_ACCOUNT_NAME)/opus/artifacts/opus.zip
+
 install:
 - cd %APPVEYOR_BUILD_FOLDER%\..
-- git clone -q https://github.com/xiph/opus.git opus
+- 'curl -LOG --data-urlencode "job=Configuration: %CONFIGURATION:-NoHTTP=%; Platform: %PLATFORM%" %OPUS_URL%'
+- 7z x opus.zip -oopus-artifacts
+- move /Y opus-artifacts opus
 - git clone -q https://github.com/xiph/ogg.git ogg
-- msbuild opus\win32\VS2015\opus.vcxproj /p:Configuration=%CONFIGURATION:-NoHTTP=%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
 - msbuild ogg\win32\VS2015\libogg_static.sln /p:Configuration=%CONFIGURATION:-NoHTTP=%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
 - if %CONFIGURATION:-NoHTTP=%==%CONFIGURATION% git clone -q --branch=OpenSSL_1_0_2-stable https://github.com/openssl/openssl.git openssl
 - ps: >-