forked from Netflix/vmaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (59 loc) · 2.12 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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'