-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
61 lines (56 loc) · 1.61 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
image: Visual Studio 2022
configuration: Release
skip_non_tags: true
skip_commits:
files:
- '.github/*'
- '.travis.yml'
- '.gitignore'
- '*.md'
install:
# Prepare Visual Studio environment
- call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
# Install Nasm
- appveyor DownloadFile "https://github.com/joedrago/nasm_mirror/raw/master/nasm-2.15.05-win64.zip" -FileName "nasm.zip"
- 7z x "nasm.zip" > nul
- move nasm-* NASM
- set PATH=%PATH%;%CD%\NASM;
- nasm -v
# Build all external libraries statically
- cd ext
- aom.cmd
- dav1d.cmd
- libjpeg.cmd
- zlibpng.cmd
- set "CC=" && set "CXX="
- cd ..
# Configure with CMake
- mkdir build
- cd build
- cmake --version
- cmake .. -DAVIF_CODEC_AOM=LOCAL -DAVIF_CODEC_DAV1D=LOCAL -DBUILD_SHARED_LIBS=OFF -DAVIF_JPEG=JPEG -DAVIF_ZLIBPNG=LOCAL -DAVIF_LIBYUV=LOCAL -DAVIF_BUILD_APPS=ON -DAVIF_ENABLE_WERROR=ON
build:
project: build/libavif.sln
parallel: true
verbosity: minimal
after_build:
- copy %CONFIGURATION%\avifenc.exe .
- copy %CONFIGURATION%\avifdec.exe .
- mkdir lib
- set ARTIFACT_ZIP=libavif_vs2022_x64_%APPVEYOR_REPO_COMMIT:~0,8%_%CONFIGURATION%.zip
- copy %CONFIGURATION%\avif.lib lib\avif_x64_%CONFIGURATION%.lib
- 7z a %ARTIFACT_ZIP% lib
- cd ..
- 7z a build\%ARTIFACT_ZIP% include examples
artifacts:
- path: 'build\libavif_vs2022_x64_*.zip'
name: Static Lib and Includes
- path: 'build\*.exe'
name: Basic apps
deploy:
- provider: GitHub
auth_token:
secure: 'RsUpI1cVgIyervo85gkQ/qRr9BRx9n6WfqcHrFLB4VNi4BBnfuMt+9dY399oP/EF'
prerelease: true
on:
appveyor_repo_tag: true