We are still too close to the limit of 1 hour (at least with the 2019 image and the 2022 image is about the same), so reduce the build time by not building libimcv natively, which saves about 10 minutes. Also, only build against OpenSSL 1.0.2 (on the 2017 image) and 1.1.1 (on the 2019 image) as these are the only versions for which OpenSSL provides extended support.
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
clone_depth: 50
|
|
|
|
image:
|
|
- Visual Studio 2017
|
|
- Visual Studio 2019
|
|
|
|
environment:
|
|
global:
|
|
TESTS_REDUCED_KEYLENGTHS: yes
|
|
LEAK_DETECTIVE: no
|
|
MONOLITHIC: yes
|
|
TZ: Europe/Zurich
|
|
matrix:
|
|
- arch: x86_64
|
|
bits: 64
|
|
# no 32-bit build as 32-bit msys is not installed
|
|
#- arch: i686
|
|
# bits: 32
|
|
|
|
install:
|
|
- tzutil /s "Central European Standard Time"
|
|
- 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
|
|
set OPENSSL_DIR=/c/%OPENSSL%-%TEST%
|
|
C:\%OPENSSL%-%TEST%\bin\openssl.exe version -a
|
|
# lld doesn't read .lib files
|
|
- IF "%IMG%" == "2019" copy C:\%OPENSSL%-%TEST%\lib\libcrypto.lib C:\%OPENSSL%-%TEST%\lib\libcrypto.dll.a
|
|
# make sure we have lld installed
|
|
- IF "%IMG%" == "2019" %MSYS_SH% --login -c ". /etc/profile && pacman --noconfirm -S --needed mingw-w64-x86_64-lld"
|
|
# newer versions of msys2 don't provide autotools or gperf via base-devel anymore
|
|
- IF "%IMG%" == "2019" %MSYS_SH% --login -c ". /etc/profile && pacman --noconfirm -S --needed autotools gperf"
|
|
|
|
build_script:
|
|
- '%MSYS_SH% --login -c ". /etc/profile && cd $APPVEYOR_BUILD_FOLDER && ./scripts/test.sh deps"'
|
|
|
|
test_script:
|
|
- '%MSYS_SH% --login -c ". /etc/profile && touch /$MSYSTEM/etc/strongswan.conf"'
|
|
- '%MSYS_SH% --login -c ". /etc/profile && cd $APPVEYOR_BUILD_FOLDER && ./scripts/test.sh"'
|