-
Notifications
You must be signed in to change notification settings - Fork 14
/
.appveyor.yml
55 lines (55 loc) · 1.88 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
version: 1.0.{build}
image:
- Visual Studio 2015
environment:
matrix:
- ARCHITECTURE: x86_64
ARCH_NAME: x64
MSYS2_PATH: C:\msys64\mingw64
- ARCHITECTURE: i686
ARCH_NAME: x86
MSYS2_PATH: C:\msys64\mingw32
install:
- C:\msys64\usr\bin\bash -lc "pacman -Sy"
- C:\msys64\usr\bin\bash -lc "pacman -S --noconfirm mingw-w64-%ARCHITECTURE%-libpng"
- C:\msys64\usr\bin\bash -lc "pacman -S --noconfirm mingw-w64-%ARCHITECTURE%-jsoncpp"
- curl "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.6.0-windows-%ARCH_NAME%.zip" -o libwebp-0.6.0-windows-%ARCH_NAME%.zip
- 7z x libwebp-0.6.0-windows-%ARCH_NAME%.zip
- cp libwebp-0.6.0-windows-%ARCH_NAME%\bin\cwebp.exe %MSYS2_PATH%\bin\
- cp libwebp-0.6.0-windows-%ARCH_NAME%\bin\webpmux.exe %MSYS2_PATH%\bin\
before_build:
- set PATH=%PATH%;%MSYS2_PATH%\bin
build_script:
- cd apng2webp_dependencies
- mkdir build
- cd build
# cmake need sh.exe not in PATH
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- cmake -DSTATIC_LINKING=TRUE .. -G "MinGW Makefiles"
- set PATH=%PATH%;C:\Program Files\Git\usr\bin
- mingw32-make
- cp apng2webp_apngopt.exe %MSYS2_PATH%\bin\
- cp apngdisraw.exe %MSYS2_PATH%\bin\
- cd %APPVEYOR_BUILD_FOLDER%
- python setup.py install
test_script:
- cd %APPVEYOR_BUILD_FOLDER%
- python setup.py test
after_test:
- cd %APPVEYOR_BUILD_FOLDER%
- mkdir deploy
- cd deploy
- cp %MSYS2_PATH%\bin\apng2webp_apngopt.exe .
- cp %MSYS2_PATH%\bin\apngdisraw.exe .
- if "%APPVEYOR_REPO_TAG%" == "true" (7z a apng2webp_dependencies-windows-%ARCH_NAME%.zip *.exe)
artifacts:
- path: 'deploy/*.zip'
name: apng2webp_dependencies-windows
deploy:
description: ''
provider: GitHub
auth_token:
secure: h7DDi0thA+gVzkb1F9jpd+Wy0BWQ8JCehNq+xY5OwC4ivxtmlR+IY2/wR9aUKx8U
artifact: apng2webp_dependencies-windows
on:
appveyor_repo_tag: true