Skip to content

Commit 01429ea

Browse files
committed
add new appveyor config for VC and mingw
1 parent 49e06ca commit 01429ea

File tree

2 files changed

+85
-23
lines changed

2 files changed

+85
-23
lines changed

appveyor-old.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: '{build}'
2+
pull_requests:
3+
do_not_increment_build_number: true
4+
skip_tags: true
5+
image:
6+
- Visual Studio 2017
7+
- Previous Visual Studio 2017
8+
configuration:
9+
- Debug
10+
- Release
11+
- Mixed
12+
platform:
13+
- x64
14+
- x86
15+
before_build:
16+
- cmd: git submodule update --init --recursive
17+
build:
18+
project: src/engine.sln
19+
parallel: true
20+
verbosity: minimal
21+
after_build:
22+
- cmd: xrbuild.cmd
23+
test: off
24+
artifacts:
25+
- path: res/xdOpenXRay.Dx86.7z
26+
name: xdOpenXRay.Dx86.7z
27+
- path: res/xdOpenXRay.Dx64.7z
28+
name: xdOpenXRay.Dx64.7z
29+
- path: res/xdOpenXRay.Mx86.7z
30+
name: xdOpenXRay.Mx86.7z
31+
- path: res/xdOpenXRay.Mx64.7z
32+
name: xdOpenXRay.Mx64.7z
33+
- path: res/xdOpenXRay.Rx86.7z
34+
name: xdOpenXRay.Rx86.7z
35+
- path: res/xdOpenXRay.Rx64.7z
36+
name: xdOpenXRay.Rx64.7z

appveyor.yml

Lines changed: 49 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,61 @@ version: '{build}'
22
pull_requests:
33
do_not_increment_build_number: true
44
skip_tags: true
5-
image:
6-
- Visual Studio 2017
7-
- Previous Visual Studio 2017
8-
configuration:
9-
- Debug
10-
- Release
11-
- Mixed
12-
platform:
13-
- x64
14-
- x86
15-
before_build:
16-
- cmd: git submodule update --init --recursive
17-
build:
18-
project: src/engine.sln
19-
parallel: true
20-
verbosity: minimal
21-
after_build:
22-
- cmd: xrbuild.cmd
5+
image: Visual Studio 2017
6+
environment:
7+
matrix:
8+
- tbs_arch: Win32
9+
tbs_tools: mingw
10+
- tbs_arch: x64
11+
tbs_tools: mingw
12+
- tbs_arch: Win32
13+
tbs_tools: msvc
14+
tbs_config: Debug
15+
- tbs_arch: Win32
16+
tbs_tools: msvc
17+
tbs_config: Release
18+
- tbs_arch: x64
19+
tbs_tools: msvc
20+
tbs_config: Debug
21+
- tbs_arch: x64
22+
tbs_tools: msvc
23+
tbs_config: Release
24+
install:
25+
- ps: >-
26+
if($env:tbs_tools -eq 'mingw' -and $env:tbs_arch -eq 'x64') {
27+
invoke 'curl' '-L -o mw64.7z "http://libgd.blob.core.windows.net/mingw/x86_64-4.9.1-release-posix-seh-rt_v3-rev1.7z"';
28+
invoke '7z' 'x -oC:\ mw64.7z';
29+
}
30+
build_script:
31+
- git submodule update --init --recursive
32+
- if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[Win32] (
33+
SET PATH=C:\MinGW\bin;%PATH% &&
34+
ECHO %cd% &&
35+
ECHO *** Building %tbs_tools%\%tbs_arch% &&
36+
MKDIR bin &&
37+
cmake .. &&
38+
make
39+
)
40+
- if [%tbs_tools%]==[mingw] if [%tbs_arch%]==[x64] (
41+
SET PATH=C:\mingw64\bin;%PATH% &&
42+
ECHO %cd% &&
43+
ECHO *** Building %tbs_tools%\%tbs_arch% &&
44+
MKDIR bin &&
45+
cmake .. &&
46+
make &&
47+
)
48+
- if [%tbs_tools%]==[msvc] (
49+
ECHO %cd% &&
50+
ECHO *** Building %tbs_tools%\%tbs_arch%\%tbs_config% &&
51+
msbuild "src\engine.sln" /m /verbosity:minimal /property:PlatformToolset=v141 /t:Clean,Build /p:Platform=%tbs_arch% /p:Configuration=%tbs_config% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
52+
)
2353
test: off
2454
artifacts:
2555
- path: res/xdOpenXRay.Dx86.7z
2656
name: xdOpenXRay.Dx86.7z
2757
- path: res/xdOpenXRay.Dx64.7z
2858
name: xdOpenXRay.Dx64.7z
29-
- path: res/xdOpenXRay.Mx86.7z
30-
name: xdOpenXRay.Mx86.7z
31-
- path: res/xdOpenXRay.Mx64.7z
32-
name: xdOpenXRay.Mx64.7z
3359
- path: res/xdOpenXRay.Rx86.7z
3460
name: xdOpenXRay.Rx86.7z
3561
- path: res/xdOpenXRay.Rx64.7z
36-
name: xdOpenXRay.Rx64.7z
62+
name: xdOpenXRay.Rx64.7z

0 commit comments

Comments
 (0)