-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
98 lines (95 loc) · 2.92 KB
/
.gitlab-ci.yml
File metadata and controls
98 lines (95 loc) · 2.92 KB
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
stages:
- build
Build (Windows / PS / MSVC):
stage: build
before_script:
- |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- choco install python cmake -y
- python -m pip install -U pip
- setx PATH "%PATH%;C:\Program Files\CMake\bin"
script:
- cmake --version # Verify CMake installation
- |
cmake -S . -G "Visual Studio 17 2022" -A Win32 -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
- cmake --build build --config RelWithDebInfo
tags:
- win
artifacts:
expire_in: 1 week
paths:
- Bin/
Build (FreeBSD / CMake / CLang):
stage: build
variables:
CC: /usr/local/bin/clang13
CXX: /usr/local/bin/clang++13
script:
# Packages
- pkg -vv
- sudo pkg install -y git cmake gmake llvm13 python27
# x86
- mkdir build_x86 && cd build_x86
- cmake .. -DX86_BUILD=1
- cmake --build . --clean-first --config RelWithDebInfo
# Go back
- cd ..
# x64
- mkdir build_x64 && cd build_x64
- cmake .. -DX86_BUILD=0
- cmake --build . --clean-first --config RelWithDebInfo
# Go back
- cd ..
# Give perm
- chmod +x dependency_builder.py
# Out dir
- mkdir req_lib
- mkdir req_lib/x86
- mkdir req_lib/x64
# Dep. builder
- ./dependency_builder.py --out=req_lib/x86 --in=Bin/FreeBSD/libnomercy_game_module_x86_CLang.so
- ./dependency_builder.py --out=req_lib/x64 --in=Bin/FreeBSD/libnomercy_game_module_x64_Clang.so
tags:
- bsd
artifacts:
expire_in: 1 week
paths:
- Bin/
- req_lib/
Build (FreeBSD / CMake / GCC):
stage: build
variables:
CC: gcc13
CXX: g++13
script:
# Packages
- pkg -vv
- sudo pkg install -y git cmake gmake gcc13 python27
# x86
- mkdir build_x86 && cd build_x86
- cmake .. -DX86_BUILD=1
- cmake --build . --clean-first --config RelWithDebInfo
# Go back
- cd ..
# x64
- mkdir build_x64 && cd build_x64
- cmake .. -DX86_BUILD=0
- cmake --build . --clean-first --config RelWithDebInfo
# Go back
- cd ..
# Give perm
- chmod +x dependency_builder.py
# Out dir
- mkdir req_lib
- mkdir req_lib/x86
- mkdir req_lib/x64
# Dep. builder
- ./dependency_builder.py --out=req_lib/x86 --in=Bin/FreeBSD/libnomercy_game_module_x86_GNU.so
- ./dependency_builder.py --out=req_lib/x64 --in=Bin/FreeBSD/libnomercy_game_module_x64_GNU.so
tags:
- bsd
artifacts:
expire_in: 1 week
paths:
- Bin/
- req_lib/