gebn / plexbackup

Backs up Plex's database to S3
MIT License
3 stars 0 forks source link

Create builds for other platforms #19

Closed gebn closed 4 years ago

gebn commented 5 years ago

E.g.

Considered compression, however other projects like Bazel do not do this.

gebn commented 5 years ago

go_binary's out attribute may come in handy. Can have multiple go_binary rules and trigger them as needed. //:plexbackup can remain Linux/amd64.

gebn commented 5 years ago

No, the correct way to do this is documented here, so you'll need to run bazel build --platforms=@io_bazel_rules_go//go/toolchain:<arch> --incompatible_no_support_tools_in_action_inputs=false plexbackup with:

The --platforms flag forces pure mode, so #20 is now somewhat moot.

N.B. given you're using --all_incompatible_changes, you'll need to pass --incompatible_no_support_tools_in_action_inputs=false until rules_go is updated.

gebn commented 5 years ago

Bazel's job is to produce a single directory containing all release assets so a simple glob can be given to the GitHub releases provided in Travis.