-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
57 lines (57 loc) · 1.24 KB
/
Jenkinsfile
File metadata and controls
57 lines (57 loc) · 1.24 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
pipeline {
agent {
label "built-in"
}
stages {
stage("Build") {
parallel {
stage("Build for Linux 64-bit") {
agent {
label "built-in"
}
steps {
sh("git submodule update --init --recursive --force")
sh("make clean")
sh("make -j4 CC=musl-gcc LDFLAGS=-static")
sh("mv taiga taiga-linux64")
archiveArtifacts("taiga-linux64")
}
}
stage("Build for Linux 64-bit (Debug)") {
agent {
label "built-in"
}
steps {
sh("git submodule update --init --recursive --force")
sh("make clean")
sh("make -j4 CC='musl-gcc -g' LDFLAGS=-static")
sh("mv taiga taiga-debug-linux64")
archiveArtifacts("taiga-debug-linux64")
}
}
stage("Build for Windows 32-bit") {
agent {
label "built-in"
}
environment {
WATCOM = "/usr/watcom"
INCLUDE = "/usr/watcom/h:/usr/watcom/h/nt"
PATH = "/usr/watcom/binl64:${env.PATH}"
}
steps {
sh("git submodule update --init --recursive --force")
sh("make clean")
sh("make -j4 TARGET=watcom")
sh("mv taiga.exe taiga-win32.exe")
archiveArtifacts("taiga-win32.exe")
}
}
}
post {
always {
notifyDiscord()
}
}
}
}
}