Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release s390x binaries on Github #1289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions buildifier/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ go_binary(
visibility = ["//visibility:public"],
)

go_binary(
name = "buildifier-linux-s390x",
out = "buildifier-linux_s390x",
embed = [":buildifier_lib"],
goarch = "s390x",
goos = "linux",
pure = "on",
visibility = ["//visibility:public"],
)

# Test that the buildifier binary works
sh_test(
name = "buildifier_integration_test",
Expand Down
10 changes: 10 additions & 0 deletions buildozer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ go_binary(
visibility = ["//visibility:public"],
)

go_binary(
name = "buildozer-linux-s390x",
out = "buildozer-linux_s390x",
embed = [":buildozer_lib"],
goarch = "s390x",
goos = "linux",
pure = "on",
visibility = ["//visibility:public"],
)

exports_files(
[
"README.md",
Expand Down
2 changes: 2 additions & 0 deletions release/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ bazel build --config=release //buildifier:all //buildozer:all //unused_deps:all
for tool in "buildifier" "buildozer" "unused_deps"; do
cp bazel-bin/"$tool/$tool-linux_amd64" $BIN_DIR
cp bazel-bin/"$tool/$tool-linux_arm64" $BIN_DIR
cp bazel-bin/"$tool/$tool-linux_s390x" $BIN_DIR
cp bazel-bin/"$tool/$tool-darwin_amd64" $BIN_DIR
cp bazel-bin/"$tool/$tool-darwin_arm64" $BIN_DIR
cp bazel-bin/"$tool/$tool-windows_amd64.exe" $BIN_DIR
Expand All @@ -44,6 +45,7 @@ upload_file() {
for tool in "buildifier" "buildozer" "unused_deps"; do
upload_file "$BIN_DIR/$tool-linux_amd64" "$tool-linux-amd64"
upload_file "$BIN_DIR/$tool-linux_arm64" "$tool-linux-arm64"
upload_file "$BIN_DIR/$tool-linux_s390x" "$tool-linux-s390x"
upload_file "$BIN_DIR/$tool-darwin_amd64" "$tool-darwin-amd64"
upload_file "$BIN_DIR/$tool-darwin_arm64" "$tool-darwin-arm64"
upload_file "$BIN_DIR/$tool-windows_amd64.exe" "$tool-windows-amd64.exe"
Expand Down
10 changes: 10 additions & 0 deletions unused_deps/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ go_binary(
visibility = ["//visibility:public"],
)

go_binary(
name = "unused_deps-linux-s390x",
out = "unused_deps-linux_s390x",
embed = [":unused_deps_lib"],
goarch = "s390x",
goos = "linux",
pure = "on",
visibility = ["//visibility:public"],
)

go_test(
name = "jar_manifest_test",
size = "small",
Expand Down