-
Notifications
You must be signed in to change notification settings - Fork 475
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
Produce Static Binaries for Releases #401
Comments
@atheriel I saw this comment today and gave it a go - it built successfully. Dockerfile:
|
Last time I gave it a go, I was able to compile, but the resulting binary wasn't executable. Maybe someone else can try? |
I actually get this compile error:
|
Info
CompilationSuccessful ExecutionSegfaults immediately. Some time ago I did some debugging and the segfault is caused by Setting cargo config to
makes it possible to use |
Yeah I couldn't get past that either. Wonder if it's just not possible to do this with our codebase? |
I tried setting up static builds using Docker containers based on either Alpine and Ubuntu with musl versions of Rust. Unfortunately the builds fail because proc_macro used by serde_derive can't be used in static builds. I'm not quite sure if there will be a workaround for this.
You can try this yourself with this Dockerfile (build with
docker build -t i3status-rust .
):Execute this from the main repo folder to get a build:
The text was updated successfully, but these errors were encountered: