代码拉取完成,页面将自动刷新
version: '{build}'
clone_folder: c:\projects\mdnsd
clone_depth: 1
environment:
global:
CYG_ARCH: x86
CYG_ROOT: C:/cygwin
CYG_SETUP_URL: http://cygwin.com/setup-x86.exe
CYG_MIRROR: http://cygwin.mirror.constant.com
CYG_CACHE: C:\cygwin\var\cache\setup
CYG_BASH: C:/cygwin/bin/bash
SHARED: ON
matrix:
- GENERATOR: MinGW Makefiles
FORCE_CXX: OFF
- GENERATOR: Visual Studio 9 2008
FORCE_CXX: ON
- GENERATOR: Visual Studio 12 2013
FORCE_CXX: OFF
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
- GENERATOR: Visual Studio 12 2013 Win64
FORCE_CXX: OFF
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
- GENERATOR: Visual Studio 16 2019
SHARED: ON
FORCE_CXX: OFF
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- GENERATOR: Visual Studio 16 2019
SHARED: OFF
FORCE_CXX: OFF
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
cache:
- '%CYG_CACHE%'
init:
- git config --global core.autocrlf input # Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
# Install needed build dependencies
install:
- git submodule update --init --recursive
- if not exist "%CYG_ROOT%" mkdir "%CYG_ROOT%"
- ps: echo "Installing Cygwin from $env:CYG_SETUP_URL to $env:CYG_ROOT/setup-x86.exe"
- appveyor DownloadFile %CYG_SETUP_URL% -FileName %CYG_ROOT%/setup-x86.exe
- ps: echo "Downloaded. Now ready to install."
- cmd: '"%CYG_ROOT%/setup-x86.exe" --quiet-mode --no-shortcuts --only-site -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_CACHE%" --packages cmake,python'
- cmd: '%CYG_BASH% -lc "cygcheck -dc cygwin"'
before_build:
# use MinGW64
- set PATH=C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH%
# Workaround for CMake not wanting sh.exe on PATH for MinGW
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%""
- md build
- cd build
- echo "Testing %GENERATOR%"
- cmake -DMDNSD_COMPILE_AS_CXX:BOOL=%FORCE_CXX% -DBUILD_SHARED_LIBS:BOOL=%SHARED% -G"%GENERATOR%" ..
- cmake --build .
- echo "Build done"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。