2020-08-24 19:48:09 +03:00
|
|
|
version: 2.33.0.{build}
|
2015-12-13 03:05:14 +03:00
|
|
|
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:
|
2017-03-18 02:40:39 +03:00
|
|
|
MSYS2_PATH_TYPE: inherit
|
|
|
|
CHERE_INVOKING: enabled_from_arguments
|
2015-12-13 03:05:14 +03:00
|
|
|
matrix:
|
2017-03-18 02:40:39 +03:00
|
|
|
- MSYSTEM: MINGW64
|
2020-05-22 16:01:25 +03:00
|
|
|
MSYS_PACKAGES: mingw-w64-x86_64-boost mingw-w64-x86_64-miniupnpc
|
|
|
|
MSYS_BITNESS: 64
|
2017-03-18 02:40:39 +03:00
|
|
|
- MSYSTEM: MINGW32
|
2020-05-22 16:01:25 +03:00
|
|
|
MSYS_PACKAGES: mingw-w64-i686-boost mingw-w64-i686-miniupnpc
|
|
|
|
MSYS_BITNESS: 32
|
2017-03-18 02:40:39 +03:00
|
|
|
|
2015-12-13 03:05:14 +03:00
|
|
|
install:
|
2020-09-28 04:08:39 +03:00
|
|
|
# install new signing keyring
|
2020-10-04 00:45:30 +03:00
|
|
|
- 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"
|
2020-09-28 04:08:39 +03:00
|
|
|
# remove packages which can break build
|
2019-05-31 16:32:32 +03:00
|
|
|
- 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"
|
2020-05-22 16:01:25 +03:00
|
|
|
# update runtime
|
2019-12-07 04:02:23 +03:00
|
|
|
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
|
2020-09-28 04:29:43 +03:00
|
|
|
# Kill bash before next try
|
2020-09-28 04:48:57 +03:00
|
|
|
- taskkill /T /F /IM bash.exe /IM gpg.exe /IM gpg-agent.exe | exit /B 0
|
2020-05-22 16:01:25 +03:00
|
|
|
# update packages and install required
|
|
|
|
- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu ${MSYS_PACKAGES}"
|
2015-12-13 03:05:14 +03:00
|
|
|
|
|
|
|
build_script:
|
2020-05-22 16:01:25 +03:00
|
|
|
- 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
|
2015-12-13 03:05:14 +03:00
|
|
|
|
|
|
|
test: off
|
2017-03-18 02:40:39 +03:00
|
|
|
|
2015-12-13 03:05:14 +03:00
|
|
|
artifacts:
|
2017-03-18 02:40:39 +03:00
|
|
|
- path: i2pd-mingw-win*.zip
|