Skip to content

Commit 6189ed7

Browse files
committed
add configuration and platform like in upstream, but build_script is still peculiar. Part 2
1 parent 75f1ac2 commit 6189ed7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

appveyor.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ environment:
1919
#- cmd: .appveyor\install-lua.cmd
2020

2121
build_script:
22-
- git submodule update --init --recursive
22+
- if [%BUILDSYSTEM%]==[MSVC] git submodule update --init --recursive
23+
- if [%BUILDSYSTEM%]==[MinGW] if [%PLATFORM%]==[x86] if [%CONFIGURATION%]==[Debug] (
24+
git submodule update --init --recursive
25+
)
2326

2427
# Remove sh.exe from the path otherwise CMake will complain:
2528
# "sh.exe was found in your PATH, here: C:/Program Files/Git/usr/bin/sh.exe"
@@ -30,7 +33,7 @@ build_script:
3033
- if [%BUILDSYSTEM%]==[MinGW] SET "PATH=C:\MinGW-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\MinGW64\bin;%PATH%"
3134

3235
- ECHO %PATH%
33-
- if [%BUILDSYSTEM%]==[MinGW] && [%PLATFORM%] = [x86] && [%CONFIGURATION%] = [Debug] (
36+
- if [%BUILDSYSTEM%]==[MinGW] if [%PLATFORM%]==[x86] if [%CONFIGURATION%]==[Debug] (
3437
MinGW32-make --version &&
3538
g++ --version &&
3639
MKDIR bin &&
@@ -44,7 +47,10 @@ build_script:
4447

4548
#create artifacts
4649
after_build:
47-
- xr_pack_build.cmd
50+
- if [%BUILDSYSTEM%]==[MSVC] xr_pack_build.cmd
51+
- if [%BUILDSYSTEM%]==[MinGW] if [%PLATFORM%]==[x86] if [%CONFIGURATION%]==[Debug] (
52+
xr_pack_build.cmd
53+
)
4854

4955
test: off
5056
artifacts:

0 commit comments

Comments
 (0)