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

Flagless cross compile builds #2974

Closed
prestonvanloon opened this issue Jul 15, 2019 · 2 comments
Closed

Flagless cross compile builds #2974

prestonvanloon opened this issue Jul 15, 2019 · 2 comments
Assignees
Labels
Blocked Blocked by research or external factors Help Wanted Extra attention is needed

Comments

@prestonvanloon
Copy link
Member

It seems we have to build cross compile invocations for each OS/arch pair, rather than invoking a build in a single command.

Blocked by bazelbuild/bazel#6519

What we have:

bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo //beacon-chain //validator
bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_arm64_cgo //beacon-chain //validator
bazel build --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64_cgo //beacon-chain //validator
bazel build --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64_cgo //beacon-chain //validator

What we want:

bazel build //:all_binaries_bundle

Which would produce a zip / tar with distros for each system.

@prestonvanloon prestonvanloon added the Blocked Blocked by research or external factors label Jul 15, 2019
@prestonvanloon prestonvanloon self-assigned this Jul 15, 2019
@prestonvanloon
Copy link
Member Author

Update: I have an idea to try from this comment: bazelbuild/bazel#6519 (comment)

Haven't had the time to attempt it yet.

@rauljordan
Copy link
Contributor

Done by @SuburbanDad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked Blocked by research or external factors Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants