avif/appveyor.yml

19 lines
937 B
YAML
Raw Normal View History

image: Visual Studio 2017
clone_folder: C:\projects\go-avif\src\github.com\Kagami\go-avif
install:
2019-03-19 21:50:03 +00:00
- set PATH=%PATH%;C:\msys64\mingw64\bin
- set GOPATH=C:\projects\go-avif
2019-03-19 22:25:01 +00:00
- set "CGO_CFLAGS=-IC:\projects\aom_dist\include"
- set "CGO_LDFLAGS=-static -LC:\projects\aom_dist\lib"
2019-03-19 21:50:03 +00:00
- C:\msys64\usr\bin\pacman --noconfirm -S mingw-w64-x86_64-cmake mingw-w64-x86_64-yasm
2019-03-19 22:25:01 +00:00
- C:\msys64\usr\bin\bash -lc "export PATH=""/mingw64/bin:$PATH""; cd /c/projects && git clone --depth=1 https://aomedia.googlesource.com/aom && mkdir aom_build && cd aom_build && cmake ../aom -G 'MSYS Makefiles' -DCMAKE_INSTALL_PREFIX=/c/projects/aom_dist -DCMAKE_BUILD_TYPE=Release -DCONFIG_AV1_DECODER=0 -DENABLE_DOCS=0 -DENABLE_EXAMPLES=0 -DENABLE_TOOLS=0 -DENABLE_TESTS=0 -DCONFIG_LOWBITDEPTH=1 && make -j3 && make install"
build_script:
2019-03-19 00:36:18 +00:00
- go get -v ./...
2019-03-19 22:37:18 +00:00
- cp %GOPATH%\bin\avif.exe .
artifacts:
2019-03-19 22:37:18 +00:00
- path: avif.exe
name: $(APPVEYOR_PROJECT_NAME)