Skip to content

Conversation

@awilkins
Copy link

This provides a statically linked build that will work on musl-based
Linuxes such as those commonly used on NAS boxes.

This provides a statically linked build that will work on musl-based
Linuxes such as those commonly used on NAS boxes.
@awilkins awilkins mentioned this pull request Mar 15, 2023
@andrewchambers
Copy link
Owner

So to clarify - this does the build in docker?

@awilkins
Copy link
Author

Yes, cross-rs does the build in Docker and leaves the outputs in the expected place in the host filesystem - I've not attempted to wire it into the existing Github Actions build stuff that someone else contributed.

The cross-rs guys had some more advice like using a lighter build setup (apparently the full Rust / Alpine image is heavier than necessary), but it Works For Me™ as-is ; I got a statically linked bupstash executable that happily runs on my x86 based NAS box that I can just scp into place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants