avif/appveyor.yml

33 lines
1.1 KiB
YAML
Raw Normal View History

image: Visual Studio 2017
configuration: Release
clone_folder: C:\projects\go-avif\src\github.com\Kagami\go-avif
install:
# Vars
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
2019-03-19 20:01:09 +00:00
- set PATH=%PATH%;C:\projects;C:\msys64\mingw64\bin
- set GOPATH=C:\projects\go-avif
2019-03-19 20:15:58 +00:00
- set "CGO_CFLAGS=-I../../../../../aom"
- set "CGO_LDFLAGS=-static -L../../../../../aom_build/%CONFIGURATION%"
# Tools
2019-03-19 20:01:09 +00:00
- cd C:\projects
- appveyor DownloadFile http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe -FileName yasm.exe
# libaom
2019-03-19 19:04:18 +00:00
- IF NOT EXIST aom git clone https://aomedia.googlesource.com/aom
- cd aom && git pull && cd ..
- mkdir -p aom_build && cd aom_build
- cmake ../aom -G "Visual Studio 15 2017" -A x64 -DCONFIG_AV1_DECODER=0 -DENABLE_DOCS=0 -DENABLE_EXAMPLES=0 -DENABLE_TOOLS=0 -DENABLE_TESTS=0 -DCONFIG_LOWBITDEPTH=1
2019-03-19 00:47:04 +00:00
- cmake --build . --config %CONFIGURATION%
build_script:
2019-03-19 00:36:18 +00:00
- cd %APPVEYOR_BUILD_FOLDER%
- go get -v ./...
artifacts:
2019-03-19 00:36:18 +00:00
- path: ..\..\..\..\bin\avif.exe
name: $(APPVEYOR_PROJECT_NAME)
cache:
2019-03-19 20:01:09 +00:00
- C:\projects\aom
- C:\projects\aom_build