forked from oracle/graal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.jsonnet
71 lines (62 loc) · 2.79 KB
/
ci.jsonnet
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
{
local common = import "../common.jsonnet",
local t(limit) = {timelimit: limit},
local gate(name, tags) = common.disable_proxies + {
name: "gate-svm-" + name + "-jdk" + self.jdk_version + "-" + self.os + "-" + self.arch,
setup+: [
["cd", "./substratevm"],
["mx", "hsdis", "||", "true"],
],
run+: [["mx", "--kill-with-sigquit", "--strict-compliance", "gate", "--strict-mode", "--tags", tags]],
targets: ["gate"],
timelimit: "45:00",
},
local clone_js_benchmarks = {
setup+: [["git", "clone", "--depth", "1", ["mx", "urlrewrite", "https://github.com/graalvm/js-benchmarks.git"], "../../js-benchmarks"]],
},
local svm_unittest = {
environment+: {
"MX_TEST_RESULTS_PATTERN": "es-XXX.json",
"MX_TEST_RESULT_TAGS": "native-image",
},
},
local maven = {
packages+: {
maven: "==3.6.3",
},
},
local musl_toolchain = {
downloads+: {
"MUSL_TOOLCHAIN": {
"name": "musl-toolchain",
"version": "1.0",
"platformspecific": true,
},
},
environment+: {
# Note that we must add the toolchain to the end of the PATH so that the system gcc still remains the first choice
# for building the rest of GraalVM. The musl toolchain also provides a gcc executable that would shadow the system one
# if it were added at the start of the PATH.
PATH: "$PATH:$MUSL_TOOLCHAIN/bin",
},
},
local mx_build_exploded = {
environment+: {
MX_BUILD_EXPLODED: "true", # test native-image MX_BUILD_EXPLODED compatibility
},
},
local linux_amd64_jdk11 = common.linux_amd64 + common.oraclejdk11,
local linux_amd64_jdk17 = common.linux_amd64 + common.oraclejdk17,
local darwin_jdk17 = common.darwin_amd64 + common.oraclejdk17,
local windows_jdk17 = common.windows_amd64 + common.oraclejdk17 + common.devkits["windows-jdk17"],
builds: [
linux_amd64_jdk17 + gate("js", "build,js") + clone_js_benchmarks + t("35:00"),
darwin_jdk17 + gate("js", "build,js") + clone_js_benchmarks,
darwin_jdk17 + gate("js-quickbuild", "build,js_quickbuild") + clone_js_benchmarks,
linux_amd64_jdk11 + gate("build-ce", "build,helloworld,test,nativeimagehelp,muslcbuild") + maven + svm_unittest + t("30:00") + musl_toolchain,
linux_amd64_jdk11 + gate("modules-basic", "build,hellomodule,test") + maven + svm_unittest + t("30:00"),
linux_amd64_jdk17 + gate("style-fullbuild", "style,fullbuild,helloworld,test,svmjunit") + common.eclipse + common.jdt + maven + svm_unittest + t("45:00") + mx_build_exploded,
windows_jdk17 + gate("basics", "build,helloworld,test,svmjunit") + svm_unittest + t("1:30:00"),
windows_jdk17 + gate("basics-quickbuild", "build,helloworld_quickbuild,test_quickbuild,svmjunit_quickbuild") + svm_unittest + t("1:30:00"),
],
}