ARM builds for abra #312

Closed
opened 1 month ago by decentral1se · 6 comments
Owner

Did this for another project, something like 360f77b259/.goreleaser.yaml (L25-L30).

Did this for another project, something like https://git.vvvvvvaria.org/decentral1se/distribusi-go/src/commit/360f77b25935b0e67e2eb058e825a699cfd8840a/.goreleaser.yaml#L25-L30.
decentral1se added the
enhancement
abra
labels 1 month ago
Collaborator

This is what currently happens when trying to install abra on ARM (this is using Linux, as Rosetta kicks on on Mac and abra runs fine on M1):

$ curl https://install.abra.coopcloud.tech | bash

downloading 0.3.0-alpha linux_aarch64 binary release for abra...
checking if checksums match...
ERROR: the checksum of downloaded file doesn't match the checksum in release! Either the file was corrupted during download or the file has been changed during transport
expected checksum:
checksum of downloaded file: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
abra was NOT installed/upgraded

$ curl https://install.abra.coopcloud.tech | bash -s -- --rc

downloading 0.4.0-alpha-rc7 linux_aarch64 binary release for abra...
checking if checksums match...
ERROR: the checksum of downloaded file doesn't match the checksum in release! Either the file was corrupted during download or the file has been changed during transport
expected checksum:
checksum of downloaded file: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
abra was NOT installed/upgraded

This is what currently happens when trying to install abra on ARM (this is using Linux, as Rosetta kicks on on Mac and abra runs fine on M1): $ curl https://install.abra.coopcloud.tech | bash downloading 0.3.0-alpha linux_aarch64 binary release for abra... checking if checksums match... ERROR: the checksum of downloaded file doesn't match the checksum in release! Either the file was corrupted during download or the file has been changed during transport expected checksum: checksum of downloaded file: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 abra was NOT installed/upgraded $ curl https://install.abra.coopcloud.tech | bash -s -- --rc downloading 0.4.0-alpha-rc7 linux_aarch64 binary release for abra... checking if checksums match... ERROR: the checksum of downloaded file doesn't match the checksum in release! Either the file was corrupted during download or the file has been changed during transport expected checksum: checksum of downloaded file: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 abra was NOT installed/upgraded
decentral1se added this to the Beta release (software) project 4 weeks ago
decentral1se referenced this issue from a commit 4 weeks ago
Poster
Owner

OK with c71efb46ba I see that goreleaser release --snapshot --rm-dist reports:

...
• building binary=/home/d/work/coop-cloud/abra/dist/abra_darwin_arm64/abra
• building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_arm64/abra
• building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_386/abra
• building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_arm_6/abra
• building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_amd64/abra
• building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_arm_5/abra
• building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_arm_7/abra
• building binary=/home/d/work/coop-cloud/abra/dist/abra_darwin_amd64/abra

So the builds are there. Once the new release is out we can see if c71efb46ba/scripts/installer/installer can handle it & if not re-work & re-deploy that script post-release to make it work. Nearly there.

OK with https://git.coopcloud.tech/coop-cloud/abra/commit/c71efb46bad29ca288516756e2da1e37a6ca3507 I see that `goreleaser release --snapshot --rm-dist` reports: ``` ... • building binary=/home/d/work/coop-cloud/abra/dist/abra_darwin_arm64/abra • building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_arm64/abra • building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_386/abra • building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_arm_6/abra • building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_amd64/abra • building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_arm_5/abra • building binary=/home/d/work/coop-cloud/abra/dist/abra_linux_arm_7/abra • building binary=/home/d/work/coop-cloud/abra/dist/abra_darwin_amd64/abra ``` So the builds are there. Once the new release is out we can see if https://git.coopcloud.tech/coop-cloud/abra/src/commit/c71efb46bad29ca288516756e2da1e37a6ca3507/scripts/installer/installer can handle it & if not re-work & re-deploy that script post-release to make it work. Nearly there.
decentral1se removed this from the Beta release (software) project 4 weeks ago
Poster
Owner

Available for testing on https://git.coopcloud.tech/coop-cloud/abra/releases/tag/0.4.0-alpha as downloads. The installer might work 🤷

Available for testing on https://git.coopcloud.tech/coop-cloud/abra/releases/tag/0.4.0-alpha as downloads. The installer might work 🤷
Owner

aarch64 and arm64 are different names for the same architecture. We should change the installer so that it pulls the arm64 version when device reports aarch64

`aarch64` and `arm64` are different names for the same architecture. We should change the installer so that it pulls the arm64 version when device reports aarch64
Owner

fixed in c214937e4a I'll wait till it builds, run the installer and close the issue if it works

fixed in https://git.coopcloud.tech/coop-cloud/abra/commit/c214937e4a99e820c7ff4c517db88462fd4cef0e I'll wait till it builds, run the installer and close the issue if it works
Owner

bonus: 32 bit arm support also added in 11d78234b2

closing, please reopen if you encounter further problems

bonus: 32 bit arm support also added in https://git.coopcloud.tech/coop-cloud/abra/commit/11d78234b2f2058d7d7b4bb22b1fcfe220a822a6 closing, please reopen if you encounter further problems
knoflook closed this issue 4 weeks ago
Sign in to join this conversation.
Loading…
There is no content yet.