Comments (7)
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.
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.
bzip2 might have to be installed through Homebrew, at least that's what I did locally.
from ouch.
@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.
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.
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.
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)
- When decompressing with `--format`, don't overwrite input
- 'smart unpack' sometimes chooses an illogical name for the directory HOT 2
- Overwrite behavior removes files differently than expected
- If the compressed file name contains a dot, ouch use it as a folder name until then. HOT 3
- Panic with large archive file HOT 6
- Progress size unit is inconsistent HOT 1
- Ignore __MACOSX by default HOT 3
- Be compatible with tee utility HOT 3
- Parallel decompression emits unaligned progress
- bgzf support
- About 0.4.2 release HOT 2
- Cargo version stuck on 0.4.1 even though 0.4.2 is released HOT 1
- `--format` flag order matters HOT 1
- -g or --gitignore doesn't seem to work HOT 3
- Flag `-g/--gitignore` doesn't ignore the default `.git*` files HOT 4
- Ouch explodes when parallel decompression requires `stdin` interaction HOT 6
- Error message for `--format .tar.gz` outputs empty extension HOT 1
- Make support for format a feature
- Remove LZMA support
- Evaluate Profile-Guided Optimization (PGO) and LLVM BOLT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ouch.