Giter VIP home page Giter VIP logo

Comments (7)

disrupted avatar disrupted commented on May 22, 2024

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.

from ouch.

vrmiguel avatar vrmiguel commented on May 22, 2024

I'm not sure if GitHub Actions is able to build for aarch64-apple-darwin yet

I gave it a try here but it failed to compile bzip2

Maybe I'm just doing it wrong though, I'll have to retry that later

from ouch.

disrupted avatar disrupted commented on May 22, 2024

bzip2 might have to be installed through Homebrew, at least that's what I did locally.

from ouch.

marcospb19 avatar marcospb19 commented on May 22, 2024

@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 bzip2-sys, as you said, bzip2 might have to be installed through Homebrew for this platform (even tho is not needed for the x86_64 one).

https://github.com/ouch-org/ouch/runs/3715706353#step:4:156

I have never used homebrew, ever, so do you remember what was the command necessary to make it work? Based on it I can try to figure it out how to add as a step in the CI setup.

from ouch.

marcospb19 avatar marcospb19 commented on May 22, 2024

At the moment of writing, there isn't proper support in the CI for building this regularly, I realized that aarch64-apple-darwin is a tier 2 target, the compiler code is not regularly tested.

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 ouch.

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.

from ouch.

NiceGuyIT avatar NiceGuyIT commented on May 22, 2024

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 arm64 binaries are present in the release, is it against the LICENSE to distribute pre-compiled binaries of ouch?

from ouch.

marcospb19 avatar marcospb19 commented on May 22, 2024

because GitHub Actions now support M1 builds

That's great news for Rust :)

the minute multiplier is 10x for macOS, meaning if it takes 2 minutes to build, your GitHub Actions account will be charged 20 minutes.

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.

is it against the LICENSE to distribute pre-compiled binaries of ouch?

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.

from ouch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.