-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
54 lines (49 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
image: ponders/godot-cpp-ci:latest
# Cache compiled bindings between runs
cache:
key: compiled-bindings
paths:
- $PROJECT_FOLDER/godot-cpp/bin/
stages:
- export
variables:
GIT_SUBMODULE_STRATEGY: recursive
PROJECT_FOLDER: gdextension_cpp_example
TARGET_NAME: libgdexample
# Linux shared libraries are humongous (>70MB) for some reason.. don't forget to strip them!
linux:
stage: export
variables:
TARGET_PATH: demo/bin/
parallel:
matrix:
- TARGET:
- template_debug
- template_release
environment: $TARGET
script:
- mkdir -v -p $PROJECT_FOLDER/$TARGET_PATH
- cd $PROJECT_FOLDER
- scons platform=linux target=$TARGET target_path=$TARGET_PATH target_name=$TARGET_NAME -j6
artifacts:
name: linux
paths:
- $PROJECT_FOLDER/$TARGET_PATH
windows:
stage: export
variables:
TARGET_PATH: demo/bin/
parallel:
matrix:
- TARGET:
- template_debug
- template_release
environment: $TARGET
script:
- mkdir -v -p $PROJECT_FOLDER/$TARGET_PATH
- cd $PROJECT_FOLDER
- scons platform=windows target=$TARGET target_path=$TARGET_PATH target_name=$TARGET_NAME -j6
artifacts:
name: windows
paths:
- $PROJECT_FOLDER/$TARGET_PATH