From a5f4b996bfeb3546e3a3bbdb79be00111a801275 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 26 Jan 2021 10:25:03 +0100 Subject: [PATCH] appveyor: Also build against newer OpenSSL versions The original version is 1.0.2, which we keep as that version is not in use on other platforms anymore. --- .appveyor.yml | 6 ++++++ scripts/test.sh | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index d003680e38..453a1bf7fa 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -22,6 +22,12 @@ install: - set MSYS_SH=C:\msys%BITS%\usr\bin\sh.exe - set MSYSTEM=MINGW%BITS% - set TEST=win%BITS% + - | + set IMG=%APPVEYOR_BUILD_WORKER_IMAGE:~-4% + set OPENSSL=OpenSSL + IF "%IMG%" == "2017" set OPENSSL=OpenSSL-v11 + IF "%IMG%" == "2019" set OPENSSL=OpenSSL-v111 + set OPENSSL_DIR=/c/%OPENSSL%-%TEST% build_script: - '%MSYS_SH% --login -c ". /etc/profile && cd $APPVEYOR_BUILD_FOLDER && ./scripts/test.sh deps"' diff --git a/scripts/test.sh b/scripts/test.sh index 406ed1bde0..0966dfcdc3 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -184,8 +184,8 @@ win*) TARGET= else CONFIG="$CONFIG --enable-openssl" - CFLAGS="$CFLAGS -I/c/OpenSSL-$TEST/include" - LDFLAGS="-L/c/OpenSSL-$TEST" + CFLAGS="$CFLAGS -I$OPENSSL_DIR/include" + LDFLAGS="-L$OPENSSL_DIR" export LDFLAGS fi CFLAGS="$CFLAGS -mno-ms-bitfields" -- 2.47.2