-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
54 lines (54 loc) · 1.23 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
variables:
MODULE_NAME: "serversecure.core"
DEPENDENCIES: "$CI_PROJECT_DIR/dependencies"
GARRYSMOD_COMMON: "$CI_PROJECT_DIR/dependencies/garrysmod_common"
SOURCE_SDK: "$CI_PROJECT_DIR/dependencies/sourcesdk-minimal"
REPOSITORY_DIR: "$CI_PROJECT_DIR"
cache:
paths:
- "$DEPENDENCIES/*"
- "$CI_PROJECT_DIR/projects/*"
job_win32:
stage: build
tags:
- windows
only:
- tags
variables:
PREMAKE5: "$CI_PROJECT_DIR/dependencies/windows/premake-core/premake5.exe"
script: "& \"$CI_PROJECT_DIR/ci.ps1\""
artifacts:
paths:
- "gmsv_${MODULE_NAME}_win32.dll"
job_linux:
stage: build
tags:
- linux
only:
- tags
variables:
PROJECT_OS: "linux"
TARGET_OS: "linux"
PREMAKE5: "$CI_PROJECT_DIR/dependencies/linux/premake-core/premake5"
CXX: "g++-4.9"
CC: "gcc-4.9"
script: "$CI_PROJECT_DIR/ci.sh"
artifacts:
paths:
- "gmsv_${MODULE_NAME}_linux.dll"
job_macosx:
stage: build
tags:
- macosx
only:
- tags
variables:
PROJECT_OS: "macosx"
TARGET_OS: "osx"
PREMAKE5: "$CI_PROJECT_DIR/dependencies/macosx/premake-core/premake5"
CXX: "g++"
CC: "gcc"
script: "$CI_PROJECT_DIR/ci.sh"
artifacts:
paths:
- "gmsv_${MODULE_NAME}_osx.dll"