ref: 7de1299afd9b54ad996394723ee86ddd471d6d6f
parent: ef87ba9330fd59b1ef56b5811be63c49b3536450
author: Mark Harris <[email protected]>
date: Tue Jun 22 17:09:35 EDT 2021
appveyor: Avoid curl TLS error opus-codec.org requires TLS 1.3 but the curl on the Appveyor image is apparently too old for that, resulting in the error: curl: (35) error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -8,7 +8,7 @@
- x64
environment:
- sample_url: https://opus-codec.org/static/examples/ehren-paper_lights-96.opus
+ sample_url: https://gitlab.xiph.org/xiph/opus-website/-/raw/master/static/examples/ehren-paper_lights-96.opus
opus_url: https://ci.appveyor.com/api/projects/$(APPVEYOR_ACCOUNT_NAME)/opus/artifacts/opus.zip
opusfile_url: https://ci.appveyor.com/api/projects/$(APPVEYOR_ACCOUNT_NAME)/opusfile/artifacts/opusfile.zip
libopusenc_url: https://ci.appveyor.com/api/projects/$(APPVEYOR_ACCOUNT_NAME)/libopusenc/artifacts/libopusenc.zip
@@ -15,6 +15,7 @@
install:
- cd %APPVEYOR_BUILD_FOLDER%
+ - curl --version
- 'curl -LOG --data-urlencode "job=Configuration: %CONFIGURATION%; Platform: %PLATFORM%" %OPUS_URL%'
- 7z x opus.zip -oopus-artifacts
- 'curl -LOG --data-urlencode "job=Configuration: %CONFIGURATION%; Platform: %PLATFORM%" %OPUSFILE_URL%'
@@ -39,13 +40,12 @@
- cd %APPVEYOR_BUILD_FOLDER%
- copy /Y COPYING LICENSE
- 7z a opus-tools.zip .\win32\VS2015\%PLATFORM%\%CONFIGURATION%\*.exe .\LICENSE
- - for %%a in (mandoc.css opusdec.html opusenc.html opusinfo.html) do curl -O https://opus-codec.org/docs/opus-tools/%%a
+ - for %%a in (mandoc.css opusdec.html opusenc.html opusinfo.html) do curl -O https://gitlab.xiph.org/xiph/opus-website/-/raw/master/docs/opus-tools/%%a
- 7z a opus-tools.zip .\mandoc.css .\opusdec.html .\opusenc.html .\opusinfo.html
test_script:
- cd %APPVEYOR_BUILD_FOLDER%\win32\VS2015\%PLATFORM%\%CONFIGURATION%
- - curl -o original.opus %SAMPLE_URL%
- - opusdec.exe original.opus decoded.wav
+ - opusdec.exe %SAMPLE_URL% decoded.wav
- opusenc.exe decoded.wav encoded.opus
- opusinfo.exe encoded.opus
- appveyor PushArtifact encoded.opus