workflows: Use native arm64 runners#7042
Conversation
Use native arm64 runners to speed up build process. Cross compile is still used for arm targets, but also benefit from the arm64 runner architecture. Overall build time will be reduced by 25 to 30 minutes by this. Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
|
Interesting. With all the jobs running in parallel it's only the highest time that really matters, except potentially for billing. |
|
As far as I understand the minutes in our usage metrics, the arm runners are accounted equally as the x86_64 runners. They do not run on the large runners, which would be billed differently based in the used minutes (even for public repos). EDIT: I've just found this page: https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/ |
|
Please note that editing Github comments doesn't notify people of the change, however that is a useful blog post to confirm that there should be no cost difference. Minor annoyance that changes to just the workflow files are deliberately ignored. |
|
Confirmed from my own builds that it is still classed under the 100% reduction for public repos. I messed up my test branch as having the two overlapping builds (x86_64 and arm64) meant that I couldn't control which one rpi-update would pick up, so I've created #7044 just to confirm that the output is valid. Otherwise it looks like a useful little saving in time for CI builds. @pelwell @popcornmix any comments or objections? |
|
If it's still free, runs quicker, and uses less energy, what's not to like? |
|
Sounds good to me |
|
Thanks, Nicolai. I'll have to get used to writing "In about 20 minutes...". |
Use native arm64 runners to speed up build process. Cross compile is still used for arm targets, but also benefit from the arm64 runner architecture. Overall build time will be reduced by 25 to 30 minutes by this.
For comparison:
x86_64: https://github.com/raspberrypi/linux/actions/runs/17582418198/job/49949837669 (total 53:48)
arm64: https://github.com/RevolutionPi/linux-raspberrypi/actions/runs/17626854174 (total 23:01)