Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build arm64 images #45

Open
rossburton opened this issue Jun 23, 2020 · 10 comments
Open

Build arm64 images #45

rossburton opened this issue Jun 23, 2020 · 10 comments

Comments

@rossburton
Copy link

Docker supports arm64, so it would be great if crops could also build arm64 images.

@rewitt1
Copy link
Contributor

rewitt1 commented Jun 25, 2020

Hey @rossburton,

I tried this out: https://travis-ci.com/github/rewitt1/yocto-dockerfiles/builds/173076130.

Since all the distros have arm64 images, they should all work. However, there are failures due to a couple of reasons. It tries to use an x86_64 version of buildtools. I can't try an arm64 version since it seems it isn't published.

The other failure is due to trying to include gcc-multilib and g++-multilib packages in the debian based distros. This could of course be made conditional.

We could choose to not build the distros that need buildtools for arm64, but it would be nice to be able to keep them symmetric.

@rossburton
Copy link
Author

rossburton commented Jun 25, 2020

Thanks Randy!

I fixed the buildtools thing last week, the 3.2M1 release included arm64 tarballs if you can grab those directly. gcc-multilib just isn't a thing on anything but x86-64, so making that conditional seems sensible.

@rewitt1
Copy link
Contributor

rewitt1 commented Jun 30, 2020

@rossburton,

Looks like this works with the changes I mentioned, and using the milestone buildtools. https://travis-ci.com/github/rewitt1/yocto-dockerfiles/builds/173740817

Are there any plans to add the arm64 buildtools tarballs to 3.1, or do we wait until the October release to try and enable this?

@rossburton
Copy link
Author

rossburton commented Jun 30, 2020 via email

@jnettlet
Copy link

Are there plans to start publishing Aarch64 images? I just found crop and attempted a yocto build on my HoneyComb box and the images failed to start. I am attempting a local build of the images now.

@lgrosz
Copy link
Contributor

lgrosz commented Apr 13, 2023

@jnettlet Any updates? Did you get the builds working on aarch64?

@moto-timo
Copy link
Member

As far as I understand it, we will need a aarch64 host to act as a GitHub Actions runner, both to build the container images and to actually run tests on them. GitHub themselves do not provide any aarch64 runners.

@rossburton
Copy link
Author

There are docker container builders that can run inside a qemu-system, but I don't know much more than that.

@keplersj
Copy link

keplersj commented Feb 6, 2024

Any update on this? It looks like since this issue was last interacted with GitHub has made movements on providing native-ARM runners for open-source projects like this: https://github.blog/changelog/2023-10-30-accelerate-your-ci-cd-with-arm-based-hosted-runners-in-github-actions/, https://resources.github.com/devops/accelerate-your-cicd-with-arm-and-gpu-runners-in-github-actions/

Additionally, it appears that an action exists that abstracts over running commands in an ARM qemu instance: https://github.com/marketplace/actions/arm-runner

@moto-timo
Copy link
Member

@keplersj feel free to send a pull request to implement building for ARM.

It appears that the ARM GitHub Actions runners are only preview and you have to sign up for a waitlist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants