noaa-apt icon indicating copy to clipboard operation
noaa-apt copied to clipboard

circleci build for arm64, armhf

Open mgrouch opened this issue 4 years ago • 4 comments

circleci build for arm64, armhf deploys automatically to cloudsmith repo

mgrouch avatar Dec 15 '20 20:12 mgrouch

Thanks! I have to think if I prefer to do it via my Docker or via an external service like CircleCI. But this is going to be very useful anyways

martinber avatar Dec 16 '20 15:12 martinber

Sorry that I'm being so lazy with this. If I merge these files I will make easier your work in bareboat-necessities? It would be useful for you if I set up the CircleCI and Cloudsmith services too?

I'm a bit resilent to use CircleCI and Cloudsmith since I dont expect doing many releases more. Although it would add support to arm32

martinber avatar Jan 07 '22 18:01 martinber

CircleCi recently put 1hr limit for builds (it was 5hr). I think your arm build might take longer so CircleCi might be not useful.

It would help me and others if you build Debian packages for armhf and arm64. Buster for now. Bullseye is near future too.

Thanks!

mgrouch avatar Jan 07 '22 19:01 mgrouch

I'm still trying to understand the differences between ARM architectures. I think I'm already building for amhf, because I'm building for "armv7-unknown-linux-gnueabihf" (according to Rust language notation)

So the thing missing would be support for arm64. But as I read, arm64 computers can execute armv7/armhf binaries. It is not the most optimal but I think it is something like running 32 bit (x86) executables in 64 bit PCs (x64). If arm64 is needed, the easiest for me apparently is to modify my Docker and compile also for what is called "aarch64-unknown-linux-gnu" in Rust.

martinber avatar Jan 23 '22 19:01 martinber

FYI - just tried the armv7 binary on 22.04 aarch64 (Pi4) and w/ ./noaa-apt and it just simply says no such file or directory. Assuming it's just failing to run on the platform as I'm looking right at the binary while trying to execute it.

alphafox02 avatar Dec 06 '22 03:12 alphafox02

FYI - just tried the armv7 binary on 22.04 aarch64 (Pi4) and w/ ./noaa-apt and it just simply says no such file or directory. Assuming it's just failing to run on the platform as I'm looking right at the binary while trying to execute it.

I assume that you fixed it as you described here: #52, am I right?

martinber avatar Dec 12 '22 22:12 martinber

Yes I did, sorry I haven’t come back and updated what I said here. Works well on the Pi4 w/ aarch64 22.04 now!

alphafox02 avatar Dec 12 '22 23:12 alphafox02

Now I'm building for aarch64/arm64 and the binaries can be downloaded from the releases page. But I leave this PR open here in case someone wants to copy your circleci setup

martinber avatar Jan 19 '23 01:01 martinber