Skip to content

Commit

Permalink
s390x support for Bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
sangitanalkar committed Aug 5, 2024
1 parent 10c8be1 commit 7e69929
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ use_repo(
"remotejdk17_win",
"remotejdk17_win_arm64",
"remotejdk21_linux",
"remotejdk21_linux_s390x",
"remotejdk21_macos",
"remotejdk21_macos_aarch64",
"remotejdk21_win",
Expand All @@ -262,12 +263,12 @@ use_repo(
# =========================================

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.8")
python.toolchain(python_version = "3.10")

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "bazel_pip_dev_deps",
python_version = "3.8",
python_version = "3.10",
requirements_lock = "//:requirements.txt",
)
use_repo(pip, "bazel_pip_dev_deps")
Expand Down Expand Up @@ -326,6 +327,13 @@ http_file(
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-arm64"],
)

http_file(
name = "jq_linux_s390x",
executable = True,
integrity = "sha256-hot8PKdCJKAt22EyYd38LkOxLart1etYNz29x/LF+SQ=",
urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-s390x"],
)

http_file(
name = "jq_macos_amd64",
executable = True,
Expand Down
1 change: 1 addition & 0 deletions scripts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ filegroup(
srcs = select({
"@platforms//cpu:arm64": ["@jq_linux_arm64//file"],
"@platforms//cpu:x86_64": ["@jq_linux_amd64//file"],
"@platforms//cpu:s390x": ["@jq_linux_s390x//file"],
}),
)

Expand Down
1 change: 1 addition & 0 deletions src/test/shell/testenv.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ EOF
"remotejdk17_win"
"remotejdk17_win_arm64"
"remotejdk21_linux"
"remotejdk21_linux_s390x"
"remotejdk21_macos"
"remotejdk21_macos_aarch64"
"remotejdk21_win"
Expand Down

0 comments on commit 7e69929

Please sign in to comment.