Use Github hosted ARM runners to build arm64/aarch64 release image (#779)
authorAlan Guo Xiang Tan <gxtan1990@gmail.com>
Tue, 19 Mar 2024 02:29:56 +0000 (10:29 +0800)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2024 02:29:56 +0000 (10:29 +0800)
commitbbefa1e5f387bcad0fac79fea00b39f15f6dee4e
tree7b3b7bcd81aa157cbba11de5b18d19bd8fcf3866
parent957aed8cdd0c35c200d2526ff5bbcfda9b4efc7f
Use Github hosted ARM runners to build arm64/aarch64 release image (#779)

Why this change?

We have been given access to Github's private beta of ARM hosted
runners. Switching to ARM runners should drastically speed up the time
required for us to build our ARM image.

What does this change do?

1. Switch to use Github's ARM hosted runners.
2. Build release image for arm64 as well. We previously only built the
   slim image because building the release image through emulation is
   way too slow so we skipped the release image.
3. Update `bundle` in `release.Dockerfile` to install gems in parallel
   based on the number of cores instead of hardcoding it to 4 jobs.
.github/workflows/build.yml
image/auto_build.rb
image/base/release.Dockerfile