-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
115 lines (115 loc) · 3.53 KB
/
Jenkinsfile
File metadata and controls
115 lines (115 loc) · 3.53 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
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")
sh("make distclean")
sh("./configure --enable-mods-shared=all")
sh("make -j4")
}
}
stage("Build for NetWare") {
agent {
label "built-in"
}
environment {
WATCOM = "/usr/watcom"
INCLUDE = "/usr/watcom/h"
NOVELLNDK = "/usr/novell/clib"
PATH = "/usr/watcom/binl64:${env.PATH}"
}
steps {
sh("git submodule update --init --recursive")
sh("make distclean")
sh("./configure --prefix=SYS:/Feather --target=NetWare --disable-ssl --enable-mods-shared=all")
sh("make -j4 package/fhttpd-netware.zip")
sh("mv package/fhttpd-netware.zip ./")
archiveArtifacts("fhttpd-netware.zip")
}
}
stage("Build for Windows 32-bit (Legacy)") {
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")
sh("make distclean")
sh("./configure --prefix=C:/Feather --target=Watcom --disable-ssl --enable-mods-shared=all")
sh("make -j4 package/install.exe")
sh("mv package/install.exe install-win32-legacy.exe")
archiveArtifacts("install-win32-legacy.exe")
}
}
stage("Build for Windows 32-bit") {
agent {
label "built-in"
}
steps {
sh("git submodule update --init --recursive")
sh("make distclean")
sh("rm -rf openssl && git clone https://github.com/clamwin/openssl --depth=1")
sh("./configure --prefix=C:/Feather --target=Windows --enable-mods-shared=all")
sh("echo CFLAGS+=-I`pwd`/openssl/include >> config.mk")
sh("echo LDFLAGS+=-L`pwd`/openssl/lib/mingw/legacy >> config.mk")
sh("echo SSL+=-lcrypt32 >> config.mk")
sh("make CC=i686-w64-mingw32-gcc AR=i686-w64-mingw32-ar RC=i686-w64-mingw32-windres -j4 package/install.exe")
sh("mv package/install.exe install-win32.exe")
archiveArtifacts("install-win32.exe")
}
}
stage("Build for Windows 64-bit") {
agent {
label "built-in"
}
steps {
sh("git submodule update --init --recursive")
sh("make distclean")
sh("rm -rf openssl && git clone https://github.com/clamwin/openssl --depth=1")
sh("./configure --prefix=C:/Feather --target=Windows --enable-mods-shared=all")
sh("echo CFLAGS+=-I`pwd`/openssl/include >> config.mk")
sh("echo LDFLAGS+=-L`pwd`/openssl/lib/mingw/x64 >> config.mk")
sh("echo SSL+=-lcrypt32 >> config.mk")
sh("make CC=x86_64-w64-mingw32-gcc AR=x86_64-w64-mingw32-ar RC=x86_64-w64-mingw32-windres -j4 package/install.exe")
sh("mv package/install.exe install-win64.exe")
archiveArtifacts("install-win64.exe")
}
}
stage("Build for PSP") {
agent {
label "built-in"
}
environment {
PSPDEV = "/usr/pspdev"
PATH = "/usr/pspdev/bin:${env.PATH}"
}
steps {
sh("git submodule update --init --recursive")
sh("make distclean")
sh("./configure --prefix=ms0:/PSP/GAME/fhttpd --target=PSP --disable-ssl --enable-mods-static=all")
sh("make -j4 package/fhttpd-psp.zip")
sh("mv package/fhttpd-psp.zip ./")
archiveArtifacts("fhttpd-psp.zip")
}
}
}
post {
always {
notifyDiscord()
}
}
}
}
}