-
Notifications
You must be signed in to change notification settings - Fork 71
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
ARM Support #45
Comments
I investigated a bit more about this as I just got this new ARM-based computer. It actually works after adding the specific target: $ rustup target add aarch64-apple-darwin
$ cargo install --target aarch64-apple-darwin ouch I verified it like this: $ file -b $(which ouch)
Mach-O 64-bit executable arm64 Perhaps this could be added to the automated release pipeline. |
I'm not sure if GitHub Actions is able to build for I gave it a try here but it failed to compile Maybe I'm just doing it wrong though, I'll have to retry that later |
bzip2 might have to be installed through Homebrew, at least that's what I did locally. |
@disrupted I'm messing with the CI, trying to make a workflow that provides a binary for your platform. Now we are stuck in an error while compiling https://github.com/ouch-org/ouch/runs/3715706353#step:4:156 I have never used |
At the moment of writing, there isn't proper support in the CI for building this regularly, I realized that We should wait until there is tier 1 support for it. Also, me and @vrmiguel both use x86_64-linux, and we are the only ones who are actively committed to maintaining Here is the tracking issue for support in the official lang repo rust-lang/rust#73908, sadly, there is no planned date for it to be solved, so I'll close this issue for now. NOTE: if you are from the feature and now GitHub Actions supports running jobs on mac's arm64, feel free to bump this issue. |
The future is now. rust-lang/rust#73908 is still outstanding but it's getting closer because GitHub Actions now support M1 builds. According to the docs, the minute multiplier is 10x for macOS, meaning if it takes 2 minutes to build, your GitHub Actions account will be charged 20 minutes. Until |
That's great news for Rust :)
Cool piece of info, I believe it is OK for us because Ouch is open-source and GitHub allows us to use too much CI, more than we need here, for sure.
It is not! Feel free to do so. (I feel like editing the source code, not updating the LICENSE, AND THEN redistributing this edited version should be illegal, but I'm not sure, I encourage you to update the LICENSE if you do edit the code.) Reopening while we wait for updates from rust-lang/rust#73908. |
The pre-compiled macOS binary appears to be x86 only. Would it be possible to have a universal build supporting ARM architecture?
When building from source using
cargo install ouch
rustup first installs an x86-64 toolchain (in addition to the arm64 toolchain) on my computer and later fails during the compilation:The text was updated successfully, but these errors were encountered: