Replies: 14 comments 3 replies
-
You can try building Yazi by following the instructions at https://yazi-rs.github.io/docs/installation#build-from-source. As for Snap, its code is available at https://github.com/sxyazi/yazi/blob/main/snap/snapcraft.yaml, but I've never used Snap myself, so I'm not sure how to make it support ARM64. cc @gapplef, do you have any pointers? |
Beta Was this translation helpful? Give feedback.
-
Arm64 support of snap was disabled as I don't have any arm device with Linux, and can't do the test myself. |
Beta Was this translation helpful? Give feedback.
-
After getting the rust tool belt (and already feeling the "cool kid" mood of doing sth new) I tried to build it once. I'm retrying it at the moment, I noticed at the beginning it was quite CPU-intensive: I wonder if that actually froze my instance, although I'm leaving it unattended for a while again and coming back later 🤞; tomorrow, I might have good or bad news. @gapplef sure thing I'm happy to help! |
Beta Was this translation helpful? Give feedback.
-
Good news, after a couple of attempts my RPi survived and built yazi (after ~45 min running it 🫠). Just out of curiosity, is it normal taking this long for other platforms as well (I suppose hardware dependency)? RE testing: as my instance's already in a working state and I wanna isolate things, I'll spin up an empty environment here and test your snap package soon. |
Beta Was this translation helpful? Give feedback.
-
@gapplef can you pls check again the artifacts? I downloaded the arm64 one (zipped) and when extracted i found an amd64.snap file; I tried regardless its name to confirm what I suspected:
|
Beta Was this translation helpful? Give feedback.
-
BTW @gapplef I had a quick look at the arm64 job raw logs now, and it really packed an *amd64.snap file (I just search for "and"); so at least I could check I'm not crazy or screwed sth there heheheh. I don't understand how it works and I couldn't spot anything arch/platform-related to determine whether it's missing some parameter/configs though... : ( My guess would be some copy/paste from the amd job that's missing or the runner's architecture mismatching the target or whatnot?! |
Beta Was this translation helpful? Give feedback.
-
Also, I'm not very familiar with these workflow/actions, but I'll try to have some read next (and then I won't be making these wild guesses anymore... 😅) However, I noticed you used both archs in the workflow file, (that had 2 diff jobs tho) but the path passed was I'm not sure if in case there are multiple files (ending with diff suffixes) that would upload them all, or just pick up the first one (and then alphabetically And I had a glance at snapcraft's docs, noticed there are some cases that it builds both for amd and arm as well at the same time. It might be useful for troubleshooting reasons, if we could make it a bit more verbose and show what's doing under the hood. And if it's possible I'd suggest we increase the retention to 2d, so if we have someone looking into it and misses it 1d, it would still be there without bothering you to re-run anything. Anyway I'll let you troubleshoot and I hope my assumptions could get closer to a resolution. |
Beta Was this translation helpful? Give feedback.
-
Basically, I specific platforms to platforms:
amd64:
arm64: and use both arch in the workflow. I excepted it to build for amd64 on amd64, and build for arm64 on arm64, automatically. But seems it always build amd64 on arm64..... As for multiple files, I think it will upload all of them, as in the case of this run I'm still trying to figure out the reason, but you may first test the file in the above link. |
Beta Was this translation helpful? Give feedback.
-
Righto I already downloaded both, and I'll give it a go tomorrow. |
Beta Was this translation helpful? Give feedback.
-
Yeah, I think two zips have the same files. I am not sure why, but seems it can't build arm64 snap on arm64. I only managed to build arm64 on amd64. And, since I bundle necessary dependencies( |
Beta Was this translation helpful? Give feedback.
-
Oh right, gotcha! 😅 I have a hunch that trying to build in a diff architecture would get out of whack and not be able to execute, but we will figure this out. For now, I was at least able to install it:
BTW, from memory, I saw this |
Beta Was this translation helpful? Give feedback.
-
I can't figure it out. Let's get some help 🤣 |
Beta Was this translation helpful? Give feedback.
-
Just seen this after I posted a response on the Discourse: https://forum.snapcraft.io/t/help-needed-cant-build-arm64-snap-with-github-actions/41356/3 Let me know if I can help here. Would love to see the snap publicly available. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone,
I'm running debian (arm64) on a rpi and and was not able to install yazi in it.
I searched and found no discussion about it.
I tried through snap, downloading the file and running install, got the following error:
Never contributed/managed any package available to be installed through apt (that would be my first guess);
Also, I've never developed in Rust, but I'd guess I could try to build/publish it there. (?)
Thanks
Beta Was this translation helpful? Give feedback.
All reactions