-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Refactoring CI regarding ARM binary publish #2136
Conversation
444986f
to
78cf8f1
Compare
## Environment variable is not passed using env: | ||
## LD gold won't work with MUSL | ||
# env: | ||
# JEMALLOC_SYS_WITH_LG_PAGE: 16 |
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.
Removing that line for the ARM build won’t be a problem?
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.
Which lines? These lines were already commented in the other file
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.
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.
I am not sure but I would like that first command that returns something different than zero should make the script abort or at least we should check that curl doesn't return something different than 0. It would help in not having Not Found
in the final meilisearch
file as it can be dangerous, we chmod u+x
it and a simple bash script can be returned by a middleware or something... We should abort before chmod
ing the file.
Co-authored-by: Clément Renault <clement@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.
Ho and BTW the download binary is not the aarch64 one when I use the script from my MacBook Pro M1, it is the x86_64
one and uses rosetta to run the binary.
$ file meilisearch
meilisearch: Mach-O 64-bit executable x86_64
This is expected, when using a M1, the downloaded binary should be x86_64. Maybe I'm wrong, but @tamo confirmed the aarch64 binary did not work on M1. Because, if aarch64 works on M1, I can make the script simpler. Can you test aarch64 binary on your mac @Kerollmops? |
Indeed, aarch64 can't work on macOS as it is an ELF binary file, not a Mach-O one. If running the |
33ebadc
to
c4a2d70
Compare
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.
Thank you. I'm validating this!
arch: aarch64 # aka ARMv8 | ||
distro: ubuntu18.04 | ||
env: | | ||
JEMALLOC_SYS_WITH_LG_PAGE: 16 |
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.
Which lines? These lines were already commented in the other file
It was not commented here, for the arm binary
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.
This CI is the old one to generate armv8 binary.
In the new CI (to generate aarch64 binary), line 87, we can see the env variable is still present if I'm correct
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.
Ah yes sorry I missed it my bad!
arch: aarch64 # aka ARMv8 | ||
distro: ubuntu18.04 | ||
env: | | ||
JEMALLOC_SYS_WITH_LG_PAGE: 16 |
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.
Ah yes sorry I missed it my bad!
bors merge |
Fixes #1909
publish-binary.yml