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

Deploy {x86_64,aarch64}-unknown-linux-musl binary #1862

Merged
merged 1 commit into from
Oct 14, 2022
Merged

Deploy {x86_64,aarch64}-unknown-linux-musl binary #1862

merged 1 commit into from
Oct 14, 2022

Conversation

gifnksm
Copy link
Contributor

@gifnksm gifnksm commented Jul 22, 2022

Added functionality to .github/workflows/deploy.yml and associated scripts to deploy pre-built binaries for x86_64-unknown-linux-musl and aarch64-unknown-linux-musl.

The x86_64-unknown-linux-musl executable is statically linked, so it will work with older versions of glibc or the Alpine Linux container environment.
I also added the aarch64-unknown-linux-musl executable because I want mdBook to run in aarch64 Linux environments (using rust-lld as the linker makes cross-compilation easier).

This fixes #1779

@gifnksm
Copy link
Contributor Author

gifnksm commented Jul 22, 2022

I tested this workflow in my repository and it works as expected: https://github.com/gifnksm/mdBook/releases/tag/test-release

@gifnksm
Copy link
Contributor Author

gifnksm commented Jul 22, 2022

The CI failure does not seem to be related to the changes made in this pull request (see #1861).

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I'm fairly reluctant to add non-tier-1 targets, since there is risk that they will not operate correctly. However, I think the risk for these particular targets is not very high. Just a forewarning that if they cause any issues, they may be removed in the future.

@ehuss ehuss merged commit 056a46c into rust-lang:master Oct 14, 2022
@gifnksm gifnksm deleted the add-musl-binary branch October 15, 2022 03:20
@eitsupi eitsupi mentioned this pull request Oct 12, 2023
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.

Prebuilt x86_64-unknown-linux-gnu binaries produce loader errors on systems with older glibc
2 participants