加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
appveyor.yml 2.12 KB
一键复制 编辑 原始数据 按行查看 历史
os: Visual Studio 2019
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
LDFLAGS: -static-libgcc -static-libstdc++
matrix:
#- arch: x86
# compiler: msvc2015
#- arch: x64
# compiler: msvc2015
#- arch: x86
# compiler: msvc2017
#- arch: x64
# compiler: msvc2017
#- arch: x86
# compiler: msvc2019
#- arch: x64
# compiler: msvc2019
- arch: x86
MSYSTEM: MINGW32
CC: ccache i686-w64-mingw32-gcc
CXX: ccache i686-w64-mingw32-g++
CFLAGS: -msse
- arch: x64
MSYSTEM: MINGW64
CC: ccache x86_64-w64-mingw32-gcc
CXX: ccache x86_64-w64-mingw32-g++
platform:
- x64
install:
- set "PATH=C:\msys64\mingw64\bin;C:\msys64\mingw32\bin;C:\msys64\usr\bin;%PATH%"
- set MSYS2_PATH_TYPE=inherit
# Download ninja and meson
- pacman -Syyuu --ask=20 --noconfirm --noprogressbar --needed
- pacman -Sy --ask=20 --noconfirm --noprogressbar --needed mingw-w64-x86_64-ninja mingw-w64-x86_64-meson
#- set CFLAGS=/D_TIMESPEC_DEFINED /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# Set up the build environment
- |
if "%compiler%"=="msvc2015" ( call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %arch% )
if "%compiler%"=="msvc2017" ( call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch% )
if "%compiler%"=="msvc2019" ( call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch% )
build_script:
- echo Building on %arch% with %compiler%
- set "CFLAGS=-static %CFLAGS%"
- set "CXXFLAGS=-static %CXXFLAGS%"
- cd libvmaf
- meson setup --backend=ninja --default-library=static --buildtype=release --prefix="%CD%/install" build
- ninja -vC build install
test_script:
- ninja -vC build test
after_build:
- 7z a vmaf-win-%arch%.zip install\**\*.*
artifacts:
- path: libvmaf\**\*.zip
- path: libvmaf\build\src\libvmaf*.*
- path: libvmaf\build\tools\*vmaf*.exe
- path: libvmaf\build\meson-logs\*.txt
cache:
- 'C:\msys64\home\appveyor\.ccache'
- 'C:\msys64\var\cache\pacman\pkg'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化