-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
167 lines (160 loc) · 7.85 KB
/
.gitlab-ci.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
stages:
- build
variables:
GIT_SUBMODULE_STRATEGY: recursive
windows_client:
stage: build
tags:
- windows
dependencies: []
script:
- cmake -S . -B build-windows-client -A x64,version=8.1 -T v142 -DBUILD_GROUP=game -DCMAKE_BUILD_TYPE="Release" -DBUILD_64BIT=ON -DBUILD_VPHYSICS=ON -DBUILD_VPHYSICS_TYPE="IVP" -DCMAKE_SYSTEM_VERSION="8.1" -DBUILD_FOLDER=tf2classic -DBUILD_FOR_PUBLIC_USE=ON
- cmake --build build-windows-client --config Release
- cmake --install build-windows-client --config Release
artifacts:
name: "winclient-$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- game_tf2classic
exclude:
- "game_tf2classic/*.pdb"
- "game_tf2classic/*.lib"
- "game_tf2classic/bin/*.pdb"
- "game_tf2classic/bin.*.lib"
- "game_tf2classic/tf2classic/bin/*.pdb"
- "game_tf2classic/tf2classic/bin/*.lib"
linux_client:
image: "registry.gitlab.steamos.cloud/steamrt/sniper/sdk"
stage: build
tags:
- linux
dependencies: []
script:
- export CCACHE_COMPILERCHECK=content
- cmake -S . -B build-linux-client -G "Unix Makefiles" -DBUILD_GROUP=game -DCMAKE_BUILD_TYPE="Release" -DBUILD_64BIT=ON -DBUILD_VPHYSICS=ON -DBUILD_VPHYSICS_TYPE="IVP" -DBUILD_FOLDER=tf2classic -DBUILD_FOR_PUBLIC_USE=ON
- cmake --build build-linux-client -j$(nproc --all) --config Release
- cmake --install build-linux-client --config Release
- strip --strip-unneeded --remove-section=.comment game_tf2classic/hl2_linux game_tf2classic/*/*.so game_tf2classic/*/*/*.so
cache:
key: ccache-$CI_COMMIT_REF_NAME-$CI_JOB_NAME
paths:
- ../.ccache
artifacts:
name: "linclient-$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- game_tf2classic
exclude:
- "game_tf2classic/*.dbg"
- "game_tf2classic/*.a"
- "game_tf2classic/bin/*.dbg"
- "game_tf2classic/bin/*.a"
- "game_tf2classic/tf2classic/bin/*.dbg"
- "game_tf2classic/tf2classic/bin/*.a"
linux_server:
image: "registry.gitlab.steamos.cloud/steamrt/sniper/sdk"
stage: build
tags:
- linux
dependencies: []
script:
- export CCACHE_COMPILERCHECK=content
- cmake -S . -B build-linux-server -G "Unix Makefiles" -DBUILD_GROUP=dedicated -DDEDICATED=1 -DCMAKE_BUILD_TYPE="Release" -DBUILD_64BIT=ON -DBUILD_VPHYSICS=ON -DBUILD_VPHYSICS_TYPE="IVP" -DBUILD_FOLDER=tf2classic -DGAMEDIR="$PWD/game_tf2classic_dedicated" -DBUILD_FOR_PUBLIC_USE=ON
- cmake --build build-linux-server -j$(nproc --all) --config Release
- cmake --install build-linux-server --config Release
- strip --strip-unneeded --remove-section=.comment game_tf2classic_dedicated/srcds_linux game_tf2classic_dedicated/*/*.so game_tf2classic_dedicated/*/*/*.so
cache:
key: ccache-$CI_COMMIT_REF_NAME-$CI_JOB_NAME
paths:
- ../.ccache
artifacts:
name: "linserver-$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- game_tf2classic_dedicated
exclude:
- "game_tf2classic_dedicated/*.dbg"
- "game_tf2classic_dedicated/*.a"
- "game_tf2classic_dedicated/bin/*.dbg"
- "game_tf2classic_dedicated/bin/*.a"
- "game_tf2classic_dedicated/tf2classic/bin/*.dbg"
- "game_tf2classic_dedicated/tf2classic/bin/*.a"
linux_aarch64_client:
image: "debian:bookworm"
stage: build
tags:
- linux_aarch64
dependencies: []
script:
- apt update
- apt upgrade -y
- apt install cmake build-essential g++ libssl-dev libcurl4-openssl-dev libbz2-dev libopenal-dev ccache libfreetype6-dev libfontconfig-dev libsdl2-dev libjpeg-dev libpng-dev git clang -y
- export CCACHE_COMPILERCHECK=content
- cmake -S . -B build-linux_aarch64-client -G "Unix Makefiles" -DBUILD_GROUP=game -DCMAKE_BUILD_TYPE="Release" -DBUILD_64BIT=ON -DBUILD_VPHYSICS=ON -DBUILD_VPHYSICS_TYPE="IVP" -DBUILD_FOLDER=tf2classic -DBUILD_FOR_PUBLIC_USE=ON -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
- cmake --build build-linux_aarch64-client -j$(nproc --all) --config Release
- cmake --install build-linux_aarch64-client --config Release
- strip --strip-unneeded --remove-section=.comment game_tf2classic/hl2_linux game_tf2classic/*/*.so game_tf2classic/*/*/*.so
cache:
key: ccache-$CI_COMMIT_REF_NAME-$CI_JOB_NAME
paths:
- ../.ccache
artifacts:
name: "aarch64-linclient-$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- game_tf2classic
exclude:
- "game_tf2classic/*.dbg"
- "game_tf2classic/*.a"
- "game_tf2classic/bin/*.dbg"
- "game_tf2classic/bin/*.a"
- "game_tf2classic/tf2classic/bin/*.dbg"
- "game_tf2classic/tf2classic/bin/*.a"
android32_client:
image: "registry.worldspawn.party:5050/tf2classic-android/docker_android_sdk:master"
stage: build
tags:
- linux
dependencies: []
script:
- export CCACHE_COMPILERCHECK=content
- export ANDROID_NDK_HOME="/opt/android-ndk-r25c"
- export ANDROID_PLATFORM_VERSION=26
- export ANDROID_PLATFORM="android-$ANDROID_PLATFORM_VERSION"
- export ANDROID_ARCH="armeabi-v7a"
- export _CMAKE_SOURCE_ENGINE_FLAGS="-DBUILD_GROUP=game -DCMAKE_BUILD_TYPE=Release -DBUILD_64BIT=OFF -DBUILD_VPHYSICS=ON -DBUILD_VPHYSICS_TYPE=IVP -DBUILD_FOLDER=tf2classic -DENABLE_TOGLES=ON -DBUILD_FOR_PUBLIC_USE=ON -DDISABLE_WARNINGS=ON -DGAMEDIR=$PWD/game_tf2classic_android32"
- export _CMAKE_ANDROID_FLAGS="-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=$ANDROID_PLATFORM_VERSION -DANDROID_PLATFORM=$ANDROID_PLATFORM -DANDROID_ABI=$ANDROID_ARCH -DCMAKE_ANDROID_ARCH_ABI=$ANDROID_ARCH -DANDROID_NDK=$ANDROID_NDK_HOME -DCMAKE_ANDROID_NDK=$ANDROID_NDK_HOME -DANDROID_ARM_MODE=arm -DCMAKE_ANDROID_ARM_MODE=arm -DANDROID_LD=lld -DCMAKE_ANDROID_LD=lld"
- cmake -S . -B build_android32 -G "Unix Makefiles" $_CMAKE_SOURCE_ENGINE_FLAGS $_CMAKE_ANDROID_FLAGS $@
- cmake --build build_android32 -j$(nproc --all) --config Release
- cmake --install build_android32 --config Release
- $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip game_tf2classic_android32/bin/*.so game_tf2classic_android32/tf2classic/bin/*.so
cache:
key: ccache-$CI_COMMIT_REF_NAME-$CI_JOB_NAME
paths:
- ../.ccache
artifacts:
name: "droidclient32-$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- game_tf2classic_android32
android64_client:
image: "registry.worldspawn.party:5050/tf2classic-android/docker_android_sdk:master"
stage: build
tags:
- linux
dependencies: []
script:
- export CCACHE_COMPILERCHECK=content
- export ANDROID_NDK_HOME="/opt/android-ndk-r25c"
- export ANDROID_PLATFORM_VERSION=26
- export ANDROID_PLATFORM="android-$ANDROID_PLATFORM_VERSION"
- export ANDROID_ARCH="arm64-v8a"
- export _CMAKE_SOURCE_ENGINE_FLAGS="-DBUILD_GROUP=game -DCMAKE_BUILD_TYPE=Release -DBUILD_64BIT=ON -DBUILD_VPHYSICS=ON -DBUILD_VPHYSICS_TYPE=IVP -DBUILD_FOLDER=tf2classic -DENABLE_TOGLES=ON -DBUILD_FOR_PUBLIC_USE=ON -DDISABLE_WARNINGS=ON -DGAMEDIR=$PWD/game_tf2classic_android64"
- export _CMAKE_ANDROID_FLAGS="-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DCMAKE_SYSTEM_NAME=Android -DCMAKE_SYSTEM_VERSION=$ANDROID_PLATFORM_VERSION -DANDROID_PLATFORM=$ANDROID_PLATFORM -DANDROID_ABI=$ANDROID_ARCH -DCMAKE_ANDROID_ARCH_ABI=$ANDROID_ARCH -DANDROID_NDK=$ANDROID_NDK_HOME -DCMAKE_ANDROID_NDK=$ANDROID_NDK_HOME -DANDROID_LD=lld -DCMAKE_ANDROID_LD=lld"
- cmake -S . -B build_android64 -G "Unix Makefiles" $_CMAKE_SOURCE_ENGINE_FLAGS $_CMAKE_ANDROID_FLAGS $@
- cmake --build build_android64 -j$(nproc --all) --config Release
- cmake --install build_android64 --config Release
- $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip game_tf2classic_android64/bin/*.so game_tf2classic_android64/tf2classic/bin/*.so
cache:
key: ccache-$CI_COMMIT_REF_NAME-$CI_JOB_NAME
paths:
- ../.ccache
artifacts:
name: "droidclient64-$CI_PROJECT_NAME-$CI_COMMIT_SHORT_SHA"
paths:
- game_tf2classic_android64