|
|
|
version: 2.33.0.{build}
|
|
|
|
pull_requests:
|
|
|
|
do_not_increment_build_number: true
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- openssl
|
|
|
|
skip_tags: true
|
|
|
|
os: Visual Studio 2015
|
|
|
|
shallow_clone: true
|
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
environment:
|
|
|
|
MSYS2_PATH_TYPE: inherit
|
|
|
|
CHERE_INVOKING: enabled_from_arguments
|
|
|
|
matrix:
|
|
|
|
- MSYSTEM: MINGW64
|
|
|
|
MSYS_PACKAGES: mingw-w64-x86_64-boost mingw-w64-x86_64-miniupnpc
|
|
|
|
MSYS_BITNESS: 64
|
|
|
|
- MSYSTEM: MINGW32
|
|
|
|
MSYS_PACKAGES: mingw-w64-i686-boost mingw-w64-i686-miniupnpc
|
|
|
|
MSYS_BITNESS: 32
|
|
|
|
|
|
|
|
install:
|
|
|
|
# install new signing keyring
|
|
|
|
- c:\msys64\usr\bin\bash -lc "curl -O https://mirror.selfnet.de/msys2/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
|
|
|
|
- c:\msys64\usr\bin\bash -lc "curl -O https://mirror.selfnet.de/msys2/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
|
|
|
|
- c:\msys64\usr\bin\bash -lc "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
|
|
|
|
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -U msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
|
|
|
|
# disable inaccessible miror (something block sed from changing files, so rewrite them) - https://github.com/msys2/MINGW-packages/issues/7084
|
|
|
|
- c:\msys64\usr\bin\bash -lc "echo 'Server = https://mirror.yandex.ru/mirrors/msys2/mingw/x86_64/' > /etc/pacman.d/mirrorlist.mingw64"
|
|
|
|
- c:\msys64\usr\bin\bash -lc "echo 'Server = https://mirror.yandex.ru/mirrors/msys2/mingw/i686/' > /etc/pacman.d/mirrorlist.mingw32"
|
|
|
|
- c:\msys64\usr\bin\bash -lc "echo 'Server = https://mirror.yandex.ru/mirrors/msys2/msys/$arch/' > /etc/pacman.d/mirrorlist.msys"
|
|
|
|
# remove packages which can break build
|
|
|
|
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Rns gcc-fortran gcc mingw-w64-{i686,x86_64}-gcc-ada mingw-w64-{i686,x86_64}-gcc-objc"
|
|
|
|
# update runtime
|
|
|
|
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
|
|
|
|
# Kill bash before next try
|
|
|
|
- taskkill /T /F /IM bash.exe /IM gpg.exe /IM gpg-agent.exe | exit /B 0
|
|
|
|
# rewrite mirrorlist again because pacman update can rewrite it
|
|
|
|
- c:\msys64\usr\bin\bash -lc "echo 'Server = https://mirror.yandex.ru/mirrors/msys2/mingw/x86_64/' > /etc/pacman.d/mirrorlist.mingw64"
|
|
|
|
- c:\msys64\usr\bin\bash -lc "echo 'Server = https://mirror.yandex.ru/mirrors/msys2/mingw/i686/' > /etc/pacman.d/mirrorlist.mingw32"
|
|
|
|
- c:\msys64\usr\bin\bash -lc "echo 'Server = https://mirror.yandex.ru/mirrors/msys2/msys/$arch/' > /etc/pacman.d/mirrorlist.msys"
|
|
|
|
# update packages and install required
|
|
|
|
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu ${MSYS_PACKAGES}"
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- echo MSYSTEM = %MSYSTEM%, bitness = %MSYS_BITNESS%
|
|
|
|
- c:\msys64\usr\bin\bash -lc "make USE_UPNP=yes -j3"
|
|
|
|
- 7z a -tzip -mx9 -mmt i2pd-mingw-win%MSYS_BITNESS%.zip i2pd.exe
|
|
|
|
|
|
|
|
test: off
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: i2pd-mingw-win*.zip
|