forked from legacyclonk/LegacyClonk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
96 lines (87 loc) · 2.75 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
version: '{build}'
skip_tags: true
image:
- Visual Studio 2017
- Ubuntu1804
platform:
- Win32
- x86
- x64
configuration: RelWithDebInfo
matrix:
exclude:
- image: Ubuntu1804
platform: Win32
- image: Visual Studio 2017
platform: x86
- image: Visual Studio 2017
platform: x64
init:
- cmd: git config --global core.autocrlf true
install:
- cmd: powershell -Command Start-FileDownload http://assets.maxmitti.tk/openclonk-deps-vs140-i386-easy.7z
- cmd: 7z x openclonk-deps-vs140-i386-easy.7z
- cmd: powershell -Command Start-FileDownload http://fulgen.bplaced.net/files/fmodapi375win.zip
- cmd: 7z x fmodapi375win.zip
- cmd: copy fmodapi375win\api\inc\* deps\include
- cmd: copy fmodapi375win\api\lib\* deps\lib
- sh: |
mkdir ramdisk
sudo mount -t tmpfs tmpfs ramdisk
cd ramdisk
if [ "$PLATFORM" = "x86" ]; then
curl -L https://github.com/legacyclonk/ubuntu-1804-x86-chroot/releases/download/continuous-master/chroot.tar.xz | sudo tar xJ
curl -L https://raw.githubusercontent.com/legacyclonk/ubuntu-1804-x86-chroot/master/setup_chroot.sh | sudo bash -e -
fi
before_build:
- cmd: cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=RelWithDebInfo .
- cmd: ls
build:
parallel: true
project: LegacyClonk.sln
for:
-
matrix:
only:
- image: Ubuntu1804
build_script:
- sh: |
if [ "$PLATFORM" = "x86" ]; then
sudo rsync -rv --exclude=ramdisk .. chroot/legacyclonk
sudo chroot chroot bash -c 'cd /legacyclonk && appveyor/build.sh'
cp chroot/legacyclonk/build/LegacyClonk.tar.gz .
else
rsync -rv --exclude=ramdisk .. legacyclonk
cd legacyclonk
appveyor/build.sh
C4GROUP=$PWD/build/c4group tools/make_Graphics.c4g.sh
C4GROUP=$PWD/build/c4group tools/make_System.c4g.sh
mv build/LegacyClonk.tar.gz .
fi
after_build:
- cmd: ls
- cmd: ls RelWithDebInfo
- cmd: mkdir appdir
- cmd: copy glew32.dll appdir
- cmd: copy RelWithDebInfo\*.exe appdir
- cmd: copy RelWithDebInfo\*.pdb appdir
- cmd: cd appdir
- cmd: 7z a LegacyClonk.zip *
- cmd: appveyor PushArtifact .\LegacyClonk.zip -DeploymentName LegacyClonk
-
- sh: appveyor PushArtifact LegacyClonk.tar.gz -DeploymentName LegacyClonk -FileName "LegacyClonk-${PLATFORM}.tar.gz"
- sh: |
if [ "$PLATFORM" = "x64" ]; then
appveyor PushArtifact Graphics.c4g -DeploymentName LegacyClonk;
appveyor PushArtifact System.c4g -DeploymentName LegacyClonk;
fi
test: off
deploy:
- provider: GitHub
tag: continuous-$(APPVEYOR_REPO_BRANCH)
release: Continuous build
auth_token:
secure: YE0vsP2wBEPL52Fo6eOeql9XqUlWimQ6Hbw2HPAOIorw4peKSiniwoU4Dhh/vXJ+
artifact: LegacyClonk
prerelease: true
force_update: true