forked from symmetryinvestments/autowrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
95 lines (80 loc) · 1.47 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
before_script:
- "git submodule sync --recursive"
- "git clean -fdx"
- "git submodule update --init --recursive"
- "cd ./examples/csharp/"
stages:
- native
- dotnet
- cleanup
Build Autowrap CSharp Linux x64 Native:
stage: native
tags:
- linux
- dmd
- dub
only:
- csharp
script:
- "dub build --arch=x86_64 --force"
- "mv libcsharp.so libcsharp.x64.so"
artifacts:
paths:
- libcsharp.x64.so
expire_in: 1 week
Build Autowrap CSharp Linux x86 Native:
stage: native
tags:
- linux
- dmd
- dub
only:
- csharp
script:
- "dub build --arch=x86 --force"
- "mv libcsharp.so libcsharp.x86.so"
artifacts:
paths:
- libcsharp.x86.so
expire_in: 1 week
Build Autowrap CSharp Windows x64 Native:
stage: native
tags:
- windows
- dmd
- dub
only:
- csharp
script:
- "dub build --arch=x86_64 --force"
- "move csharp.dll csharp.x64.dll"
artifacts:
paths:
- csharp.x64.dll
expire_in: 1 week
Build Autowrap CSharp Windows x86 Native:
stage: native
tags:
- windows
- dmd
- dub
only:
- csharp
script:
- "dub build --arch=x86 --force"
- "move csharp.dll csharp.x86.dll"
artifacts:
paths:
- csharp.x86.dll
expire_in: 1 week
Build Autowrap CSharp .NET Library:
stage: dotnet
tags:
- linux
- dotnet
only:
- csharp
script:
- "dub run --config=emitCSharp"
- "dotnet build"
- "dotnet pack"