forked from streamblocks/streamblocks-graalvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.jsonnet
94 lines (81 loc) · 2.5 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
local javaBuild = {
targets: ['gate'],
timelimit: '00:59:59',
run: [
['mvn', 'clean'],
['mvn', 'package'],
['./sl', 'language/tests/Add.sl'],
],
environment+: {
SL_BUILD_NATIVE: 'false'
},
},
local graalvmBuild = {
targets: ['gate'],
timelimit: '00:59:59',
run+: [
["$JAVA_HOME/bin/gu", 'install', 'native-image'],
['mvn', 'clean'],
['mvn', 'package'],
['./sl', 'language/tests/Add.sl'],
['./native/slnative', 'language/tests/Add.sl'],
["$JAVA_HOME/bin/gu", 'install', '-L', 'component/sl-component.jar'],
["$JAVA_HOME/bin/sl", 'language/tests/Add.sl'],
["$JAVA_HOME/bin/slnative", 'language/tests/Add.sl'],
["$JAVA_HOME/bin/polyglot", '--jvm', '--language', 'sl', '--file', 'language/tests/Add.sl'],
["$JAVA_HOME/bin/gu", 'remove', 'sl'],
['./generate_parser.sh'],
['mvn', 'package'],
['./sl', 'language/tests/Add.sl'],
]
},
local java8 = {
downloads+: {
JAVA_HOME: {"name": "oraclejdk", "version": "8u261+33-jvmci-20.2-b03", "platformspecific": true },
}
},
local java11 = {
downloads+: {
JAVA_HOME: {"name": "oraclejdk", "version": "11.0.6+8", "platformspecific": true },
}
},
local graalvm8 = {
downloads+: {
JAVA_HOME: { name: 'graalvm-ce-java8', version: '20.3.0', platformspecific: true },
}
},
local graalvm11 = {
downloads+: {
JAVA_HOME: { name: 'graalvm-ce-java11', version: '20.3.0', platformspecific: true },
}
},
local linux = {
capabilities+: ['linux', 'amd64'],
packages+: {
maven: '==3.3.9',
},
},
local darwin = {
capabilities+: ['darwin_sierra', 'amd64'],
environment+: {
MACOSX_DEPLOYMENT_TARGET: '10.11',
},
},
local fixDarwinJavaHome = {
environment+: {
JAVA_HOME: '$JAVA_HOME/Contents/Home'
},
},
builds: [
graalvmBuild + linux + graalvm8 + { name: 'linux-graalvm8' },
graalvmBuild + linux + graalvm11 + { name: 'linux-graalvm11' },
graalvmBuild + darwin + fixDarwinJavaHome + graalvm8 + { name: 'darwin-graalvm8' },
graalvmBuild + darwin + fixDarwinJavaHome + graalvm11 + { name: 'darwin-graalvm11' },
# Blocked by the sl script being unable to find maven repo
# javaBuild + linux + java8 + { name: 'linux-java8' },
# javaBuild + linux + java11 + { name: 'linux-java11' },
# javaBuild + darwin + java8 + { name: 'darwin-java8' },
# javaBuild + darwin + java11 + { name: 'darwin-java11' },
],
}