Skip to content

Commit e24767b

Browse files
committed
Add deps.windows_devkit in ci/common.jsonnet
1 parent 3ee1fd5 commit e24767b

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

ci/common.jsonnet

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ local common_json = import "../common.json";
109109
oraclejdkLatest: self["oraclejdk-latest"],
110110
},
111111

112-
# The devkits versions reflect those used to build the JVMCI JDKs (e.g., see devkit_platform_revisions in <jdk>/make/conf/jib-profiles.js)
112+
# The devkits versions reflect those used to build the JVMCI JDKs (e.g., see devkit_platform_revisions in <jdk>/make/conf/jib-profiles.js).
113+
# See deps.windows_devkit to add a devkit on windows conveniently.
113114
devkits: {
114115
"windows-jdk17": { packages+: { "devkit:VS2022-17.1.0+1": "==0" }},
115116
"windows-jdk19": { packages+: { "devkit:VS2022-17.1.0+1": "==0" }},
@@ -174,6 +175,12 @@ local common_json = import "../common.json";
174175

175176
# These dependencies are not included by default in any platform object
176177

178+
# Not included by default in $.windows_amd64 and $.windows_server_2016_amd64 because it needs jdk_name.
179+
# As a note, Native Image needs this to build.
180+
windows_devkit:: {
181+
packages+: if self.os == "windows" then $.devkits["windows-" + self.jdk_name].packages else {},
182+
},
183+
177184
eclipse: {
178185
downloads+: {
179186
ECLIPSE: {

sulong/ci/ci_common/sulong-common.jsonnet

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ local sulong_deps = common.deps.sulong;
8080
linux_aarch64:: linux_aarch64 + sulong_deps,
8181
darwin_amd64:: darwin_amd64 + sulong_deps,
8282
darwin_aarch64:: darwin_aarch64 + sulong_deps,
83-
windows_amd64:: windows_amd64 + sulong_deps + {
84-
local jdk = if self.jdk_name == "jdk-latest" then "jdkLatest" else self.jdk_name,
85-
packages+: common.devkits["windows-" + jdk].packages
86-
},
83+
windows_amd64:: windows_amd64 + sulong_deps + common.deps.windows_devkit,
8784

8885
sulong_notifications:: {
8986
notify_groups:: ["sulong"],

tools/ci/ci.jsonnet

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
local common = import '../../ci/ci_common/common.jsonnet',
33
local utils = import '../../ci/ci_common/common-utils.libsonnet',
44
local top_level_ci = utils.top_level_ci,
5-
local devkits = common.devkits,
65

76
local tools_common = {
87
setup+: [
@@ -90,8 +89,8 @@
9089
common.linux_aarch64 + common.labsjdkLatest + tools_weekly,
9190
common.linux_aarch64 + common.labsjdk21 + tools_weekly,
9291

93-
common.windows_amd64 + common.oraclejdkLatest + tools_weekly + devkits["windows-jdkLatest"],
94-
common.windows_amd64 + common.oraclejdk21 + tools_weekly + devkits["windows-jdk21"],
92+
common.windows_amd64 + common.oraclejdkLatest + tools_weekly + common.deps.windows_devkit,
93+
common.windows_amd64 + common.oraclejdk21 + tools_weekly + common.deps.windows_devkit,
9594

9695
common.darwin_amd64 + common.oraclejdkLatest + tools_weekly,
9796
common.darwin_amd64 + common.oraclejdk21 + tools_weekly,

0 commit comments

Comments
 (0)