-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
appveyor.yml
131 lines (113 loc) · 3.11 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: "{build}"
# all brance build
image:
- Visual Studio 2017
environment:
matrix:
# Cygwin/x64/Release
- platform: Cygwin x64
arch: x64
toolchain: Cygwin
configuration: Release
cmake_args: -B ./PrjCygwin -G "Unix Makefiles" -DBUILD_BULLET_PHYSIC_LIB=OFF -DBUILD_SHARED_LIBS=ON
GIT_LFS_SKIP_SMUDGE: 1
# Win32/x86/Release
# - platform: Win32 x86
# arch: x86
# toolchain: MSVC
# configuration: Release
# cmake_args: -B ./PrjVisualStudio -G "Visual Studio 15 2017" -A Win32 -DBUILD_BULLET_PHYSIC_LIB=OFF -DBUILD_SHARED_LIBS=ON
# cmake_build: /verbosity:minimal /maxcpucount
# GIT_LFS_SKIP_SMUDGE: 1
# clone directory
clone_folder: C:\Projects\Skylicht_Engine
# https://www.appveyor.com/docs/windows-images-software
install:
# clone submodules
- git submodule update --init --recursive
# remove conflict sh.exe
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
# set env for python
- set PATH=C:\Python37;%PATH%
# set env for cygwin
- if "%toolchain%"=="Cygwin" set PATH=C:\cygwin64\bin;%PATH%
# set env for android
- if "%toolchain%"=="Android" set PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
# test version
- cmake --version
- python --version
- echo %PATH%
- echo %platform%
- echo %APPVEYOR_BUILD_VERSION%
before_build:
- cd C:\Projects\Skylicht_Engine
- echo %arch%
- echo %cmake_args%
- cmake -S . %cmake_args%
# will be override
build_script:
# will be override
after_build:
# will be override
test_script:
#artifacts:
# - path: Build\*.zip
for:
# MSVC
- matrix:
only:
- toolchain: MSVC
build_script:
- cd Assets
- python BuildAssetBundles.py
- cd ..
- cmake --build ./PrjVisualStudio --config "%configuration%" -- %cmake_build%
after_build:
- mkdir Build
- dir Bin
- type Version.txt
- set /p CONFIG_VERSION=<Version.txt
- set file_version=%CONFIG_VERSION:.=_%_%APPVEYOR_BUILD_VERSION%
- set output_zip=SkylichtDemo_%file_version%_%toolchain%_%arch%.zip
- copy Bin\%configuration%\*.exe Bin
- cd Bin
- 7z a %output_zip% *.zip
- 7z a %output_zip% *.exe
- cd ..
- copy Bin\%output_zip% Build
test_script:
- cd PrjVisualStudio
- ctest -C %configuration% --verpose
- cd ..
# Cygwin
- matrix:
only:
- toolchain: Cygwin
build_script:
- cd Assets
- python BuildAssetBundles.py
- cd ..
- make -C PrjCygwin
after_build:
- mkdir Build
- dir Bin
- type Version.txt
- set /p CONFIG_VERSION=<Version.txt
- set file_version=%CONFIG_VERSION:.=_%_%APPVEYOR_BUILD_VERSION%
- set output_zip=SkylichtDemo_%file_version%_%toolchain%_%arch%.zip
- cd Bin
- 7z a %output_zip% *.zip
- 7z a %output_zip% *.exe
- cd ..
- copy Bin\%output_zip% Build
test_script:
- cd PrjCygwin
- ctest --verpose
- cd ..
#deploy:
#- provider: GitHub
# auth_token:
# secure: the-token-is-hidden-on-purpose
# force_update: true
# on:
# APPVEYOR_REPO_TAG: true