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
Reducing ArmV8 binary build time with action-rs (cross build with Rust) #1811
Conversation
Thanks @patrickdung we will review this asap :) |
Hello @patrickdung I discussed with the team, and we don't want to provide
However we agree to keep the |
Hello @curquiza, The Musl binaries is a proof of concept about the action-rs rust cross build platform. It could build/cross-build Musl binaries on a X86_64 system. It's fine taking it out. BTW, I am not sure about the binary used in Meilisearch docker image is a Musl binary, Glibc binary or support both C libraries (hybrid build?):
Finally, check out this link for good performance with Microsoft mimalloc with Musl. OK, looks like the stripped binary (did not strip the symbol table) won't generate backtrace with the line numbers of the actual codes. BTW, the meiliearch binary in the meilisearch.deb package is stripped.
After finalizing or getting the feedback, I would submit another PR. |
Thanks for your quick answer @patrickdung
|
Hello @curquiza Please note this PR is updated (so there is no need to submit another PR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we only have one binary, should we need to use the if
condition and the matrix?
better spacing Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
better naming Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
better naming Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
For the matrix/if statement, maybe just leave it. It should work, tested in here. If more cross builds is needed, the next people working on it would need to add back those stuff again. If it needs to remove the "matrix" from the workflow file, it requires several changes and need more time to test. I am busy with other stuff and can't work on it. So, please feel free to update/change it if you want (or by MeiliSearch team). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, @patrickdung thanks for the time your spent on this :)
Update to use the correct syntax Co-authored-by: Clémentine Urquizar <clementine@meilisearch.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot @patrickdung!
bors merge
If you are participating in Hacktoberfest, and you would like to receive a small gift from MeiliSearch too, please complete this form.
This pull request is based on discussion #1790
Note:
Existing binary would be produced (by existing GitHub workflow/action)
meilisearch-linux-amd64
meilisearch-linux-armv8
meilisearch-macos-amd64
meilisearch-windows-amd64.exe
meilisearch.deb
meilisearch-linux-aarch64
meilisearch-linux-aarch64-musl
meilisearch-linux-aarch64-stripped
meilisearch-linux-amd64-musl