Skip to content

Commit

Permalink
Add references to jdk 17 and 18 for linux-aarch64
Browse files Browse the repository at this point in the history
Closes #14937

Closes #16103.

PiperOrigin-RevId: 472802039
Change-Id: I4125d542bc52c30c3040939d3ad40b47dd664643
  • Loading branch information
nresare authored and copybara-github committed Sep 7, 2022
1 parent b6803a2 commit a380a15
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
28 changes: 28 additions & 0 deletions distdir_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,20 @@ DIST_DEPS = {
],
"used_in": [],
},
"remotejdk17_linux_aarch64": {
"aliases": [
"remotejdk17_linux_aarch64_for_testing",
"openjdk17_linux_aarch64_archive",
],
"archive": "zulu17.32.13-ca-jdk17.0.2-linux_aarch64.tar.gz",
"sha256": "2b8066bbdbc5cff422bb6b6db1b8f8d362b576340cce8492f1255502af632b06",
"strip_prefix": "zulu17.32.13-ca-jdk17.0.2-linux_aarch64",
"urls": [
"https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-linux_aarch64.tar.gz",
"https://cdn.azul.com/zulu/bin/zulu17.32.13-ca-jdk17.0.2-linux_aarch64.tar.gz",
],
"used_in": ["test_WORKSPACE_files"],
},
"remotejdk17_macos": {
"aliases": [
"remotejdk17_macos_for_testing",
Expand Down Expand Up @@ -628,6 +642,20 @@ DIST_DEPS = {
],
"used_in": [],
},
"remotejdk18_linux_aarch64": {
"aliases": [
"remotejdk18_linux_for_testing",
"openjdk18_linux_archive",
],
"archive": "zulu18.28.13-ca-jdk18.0.0-linux_aarch64.tar.gz",
"sha256": "a1d5f78172f32f819d08e9043b0f82fa7af738b37c55c6ca8d6092c61d204d53",
"strip_prefix": "zulu18.28.13-ca-jdk18.0.0-linux_aarch64",
"urls": [
"https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-linux_aarch64.tar.gz",
"https://cdn.azul.com/zulu/bin/zulu18.28.13-ca-jdk18.0.0-linux_aarch64.tar.gz",
],
"used_in": ["test_WORKSPACE_files"],
},
"remotejdk18_linux": {
"aliases": [
"remotejdk18_linux_for_testing",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ gen_workspace_stanza(
"remotejdk11_win_arm64",
] + [
"remotejdk%s_%s" % (version, os)
for os in ("macos", "macos_aarch64", "linux", "win", "win_arm64")
for os in ("macos", "macos_aarch64", "linux", "linux_aarch64", "win", "win_arm64")
for version in ("17", "18")
],
template = "jdk.WORKSPACE.tmpl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ maybe(
version = "17",
)

# This must be kept in sync with the top-level WORKSPACE file.
maybe(
remote_java_repository,
{remotejdk17_linux_aarch64}
target_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:aarch64",
],
version = "17",
)

# This must be kept in sync with the top-level WORKSPACE file.
maybe(
remote_java_repository,
Expand Down Expand Up @@ -170,6 +181,17 @@ maybe(
version = "18",
)

# This must be kept in sync with the top-level WORKSPACE file.
maybe(
remote_java_repository,
{remotejdk18_linux_aarch64}
target_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:aarch64",
],
version = "18",
)

# This must be kept in sync with the top-level WORKSPACE file.
maybe(
remote_java_repository,
Expand Down
2 changes: 1 addition & 1 deletion tools/jdk/BUILD.tools
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ _JDKS = [
"remotejdk11_linux_s390x",
] + [
"remotejdk%s_%s" % (version, os)
for os in ("linux", "macos", "macos_aarch64", "win", "win_arm64")
for os in ("linux", "linux_aarch64", "macos", "macos_aarch64", "win", "win_arm64")
for version in ("17", "18")
]

Expand Down

0 comments on commit a380a15

Please sign in to comment.