Skip to content

Commit fe9fa87

Browse files
committed
Update graal and use truffleruby dependencies from common.jsonnet
1 parent 7958712 commit fe9fa87

File tree

3 files changed

+15
-36
lines changed

3 files changed

+15
-36
lines changed

ci.jsonnet

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ local common = import "ci/common.jsonnet";
2929
# where build is defined, there are no other objects in the middle.
3030
local part_definitions = {
3131
local jt = function(args) [["bin/jt"] + args],
32-
local mri_version = "3.1.2",
3332

3433
use: {
3534
common: {
@@ -224,51 +223,27 @@ local part_definitions = {
224223
},
225224

226225
platform: {
227-
local linux_amd64_deps = common.deps.sulong + {
226+
local common_deps = common.deps.truffleruby + common.deps.sulong,
227+
local linux_amd64_extra_deps = {
228228
packages+: {
229229
binutils: ">=2.30",
230-
ruby: "==" + mri_version,
231-
libyaml: "==0.2.5",
232230
},
233231
},
234232

235-
local linux_aarch64_deps = common.deps.sulong + {
236-
packages+: {
237-
ruby: "==3.0.2",
238-
libyaml: "==0.2.5",
239-
},
240-
},
241-
242-
local darwin_amd64_deps = common.deps.sulong + {
243-
packages+: {
244-
ruby: "==3.0.2",
245-
},
246-
},
247-
248-
local darwin_aarch64_deps = common.deps.sulong + {
249-
packages+: {
250-
ruby: "==3.0.2",
251-
},
252-
},
253-
254-
linux: common.linux_amd64 + linux_amd64_deps + {
233+
linux: common.linux_amd64 + common_deps + linux_amd64_extra_deps + {
255234
platform_name:: "LinuxAMD64",
256235
"$.cap":: {
257236
normal_machine: [],
258237
bench_machine: ["x52"] + self.normal_machine + ["no_frequency_scaling"],
259238
},
260-
docker: {
261-
image: "buildslave_ol7",
262-
mount_modules: true,
263-
},
264239
},
265-
linux_aarch64: common.linux_aarch64 + linux_aarch64_deps + {
240+
linux_aarch64: common.linux_aarch64 + common_deps + {
266241
platform_name:: "LinuxAArch64",
267242
"$.cap":: {
268243
normal_machine: [],
269244
},
270245
},
271-
darwin_amd64: common.darwin_amd64 + darwin_amd64_deps + {
246+
darwin_amd64: common.darwin_amd64 + common_deps + {
272247
platform_name:: "DarwinAMD64",
273248
"$.cap":: {
274249
normal_machine: ["darwin_mojave"],
@@ -277,7 +252,7 @@ local part_definitions = {
277252
LANG: "en_US.UTF-8",
278253
},
279254
},
280-
darwin_aarch64: common.darwin_aarch64 + darwin_aarch64_deps + {
255+
darwin_aarch64: common.darwin_aarch64 + common_deps + {
281256
platform_name:: "DarwinAArch64",
282257
"$.cap":: {
283258
normal_machine: [],

ci/common.jsonnet

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,13 @@ local common_json = import "../common.json";
101101
},
102102

103103
truffleruby:: {
104-
packages+: if self.os == "linux" then {
105-
ruby: "==2.6.3",
106-
} else {},
104+
packages+: (if self.os == "linux" && self.arch == "amd64" then {
105+
ruby: "==3.1.2", # Newer version, also used for benchmarking
106+
} else {
107+
ruby: "==3.0.2",
108+
}) + (if self.os == "linux" then {
109+
libyaml: "==0.2.5",
110+
} else {}),
107111
},
108112

109113
graalnodejs:: {

mx.truffleruby/suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"name": "regex",
99
"subdir": True,
10-
"version": "39c80292e2f92822a3882c1350226706abd78917",
10+
"version": "7898bacfc2c8164a1087aa78d7cecc46d9d6f5e8",
1111
"urls": [
1212
{"url": "https://github.com/oracle/graal.git", "kind": "git"},
1313
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},
@@ -16,7 +16,7 @@
1616
{
1717
"name": "sulong",
1818
"subdir": True,
19-
"version": "39c80292e2f92822a3882c1350226706abd78917",
19+
"version": "7898bacfc2c8164a1087aa78d7cecc46d9d6f5e8",
2020
"urls": [
2121
{"url": "https://github.com/oracle/graal.git", "kind": "git"},
2222
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},

0 commit comments

Comments
 (0)