From dcfb376e1d5fb090c3c9c27399815ea439c254aa Mon Sep 17 00:00:00 2001 From: Kagami Hiiragi Date: Sun, 7 Apr 2019 02:22:19 +0300 Subject: [PATCH] Travis builds and uploads all binaries :tada: [skip ci] --- .travis.yml | 3 ++- README.md | 8 +++++--- appveyor.yml | 18 ------------------ 3 files changed, 7 insertions(+), 22 deletions(-) delete mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml index 37a28a4..f540c63 100644 --- a/.travis.yml +++ b/.travis.yml @@ -79,7 +79,8 @@ deploy: file_glob: true file: avif* skip_cleanup: true - draft: true + on: + tags: true notifications: email: diff --git a/README.md b/README.md index d7efc07..3372c3d 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,10 @@ -# go-avif [![Build Status](https://travis-ci.org/Kagami/go-avif.svg?branch=master)](https://travis-ci.org/Kagami/go-avif) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/Kagami/go-avif?branch=master&svg=true)](https://ci.appveyor.com/project/Kagami/go-avif) [![GoDoc](https://godoc.org/github.com/Kagami/go-avif?status.svg)](https://godoc.org/github.com/Kagami/go-avif) +# go-avif [![Build Status](https://travis-ci.org/Kagami/go-avif.svg?branch=master)](https://travis-ci.org/Kagami/go-avif) [![GoDoc](https://godoc.org/github.com/Kagami/go-avif?status.svg)](https://godoc.org/github.com/Kagami/go-avif) go-avif implements AVIF ([AV1 Still Image File Format](https://aomediacodec.github.io/av1-avif/)) encoder for Go using libaom, the [high quality](https://github.com/Kagami/av1-bench) AV1 codec. -[CLI](#cli) builds for Windows: [avif.exe](https://ci.appveyor.com/project/Kagami/go-avif/build/artifacts) - ## Requirements Make sure libaom is installed. On typical Linux distro just run: @@ -98,6 +96,10 @@ avif -e pig.png -o piggy.avif --lossless avif -h ``` +Static 64-bit builds for Windows, macOS and Linux are available at +[releases page](https://github.com/Kagami/go-avif/releases). They include +latest libaom from git at the moment of build. + ## Display To display resulting AVIF files take a look at software listed diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 5bb8972..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,18 +0,0 @@ -image: Visual Studio 2017 -clone_folder: C:\projects\go-avif\src\github.com\Kagami\go-avif - -install: - - set PATH=%PATH%;C:\msys64\mingw64\bin - - set GOPATH=C:\projects\go-avif - - set "CGO_CFLAGS=-IC:\projects\aom_dist\include" - - set "CGO_LDFLAGS=-static -LC:\projects\aom_dist\lib" - - C:\msys64\usr\bin\pacman --noconfirm -S mingw-w64-x86_64-cmake mingw-w64-x86_64-yasm - - 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: - - go get -v ./... - - cp %GOPATH%\bin\avif.exe . - -artifacts: - - path: avif.exe - name: $(APPVEYOR_PROJECT_NAME)