-
Notifications
You must be signed in to change notification settings - Fork 209
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
feat: ARM64 DockerイメージをLinux ARM64 Hosted Runnerでビルドする #1533
Open
aoirint
wants to merge
20
commits into
VOICEVOX:master
Choose a base branch
from
aoirint:feature/docker-build-on-native-arm64-runner
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: ARM64 DockerイメージをLinux ARM64 Hosted Runnerでビルドする #1533
aoirint
wants to merge
20
commits into
VOICEVOX:master
from
aoirint:feature/docker-build-on-native-arm64-runner
+187
−18
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
動く状態にはなっているので、Ready for Reviewにします。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
内容
ARM64 DockerイメージをLinux ARM64 Hosted Runnerでビルドするようにします。
従来は、Linux AMD64 Hosted Runner上で、QEMUを使ったARM64 CPUエミュレーションによってビルドされていました。
2025-01-16から、GitHub ActionsでLinux ARM64 Hosted RunnerのPublic Previewが始まり、ネイティブARM64環境でCIを実行できるようになりました。
このプルリクエストにより、遅いCPUエミュレーションをしなくなるため、Dockerイメージのビルドが速くなる見込みです。
また、現在 2b36a92 、CPU版イメージのビルドCIがQEMUの不具合の影響で落ちていますが、このプルリクエストによりCIではQEMUを使用しなくなるため、ARM64イメージビルド時のSegmentation Errorの発生を回避できるようになり、 #1525 が修正されます。
AMD64マシンを使ったローカルビルドでは、引き続き #1525 の影響を受けますが、QEMU側で修正が入っているようなので、いずれ解消すると思います。
タグの命名規則の変更
従来は、以下の7種類のタグでイメージをビルドしていました( #1498 により、実際にビルドするのは4種類 )。
{version}
cpu-{version}
cpu-ubuntu22.04-{version}
cpu-ubuntu20.04-{version}
nvidia-{version}
nvidia-ubuntu22.04-{version}
nvidia-ubuntu20.04-{version}
イメージの別名をまとめて表示
{version}
,cpu-{version}
,cpu-ubuntu22.04-{version}
cpu-ubuntu20.04-{version}
nvidia-{version}
,nvidia-ubuntu22.04-{version}
nvidia-ubuntu20.04-{version}
このプルリクエスト以降は、各CPUアーキテクチャ別にGitHub Actionsのジョブを分ける必要があるため、各CPUアーキテクチャ別のイメージが増えて、以下の16種類のタグでイメージをビルドするようになります( #1498 により、実際にビルドするのは6種類 )。ビルドキャッシュも同様に、CPUアーキテクチャ別のタグに保存するようになります。
{version}
cpu-{version}
cpu-amd64-{version}
cpu-arm64-{version}
cpu-ubuntu22.04-{version}
cpu-ubuntu20.04-{version}
cpu-amd64-ubuntu22.04-{version}
cpu-amd64-ubuntu20.04-{version}
cpu-arm64-ubuntu22.04-{version}
cpu-arm64-ubuntu20.04-{version}
nvidia-{version}
nvidia-amd64-{version}
nvidia-ubuntu22.04-{version}
nvidia-ubuntu20.04-{version}
nvidia-amd64-ubuntu22.04-{version}
nvidia-amd64-ubuntu20.04-{version}
イメージの別名をまとめて表示
{version}
,cpu-{version}
,cpu-amd64-{version}
,cpu-ubuntu22.04-{version}
,cpu-amd64-ubuntu22.04-{version}
cpu-arm64-{version}
,cpu-arm64-ubuntu22.04-{version}
cpu-ubuntu20.04-{version}
,cpu-amd64-ubuntu20.04-{version}
cpu-arm64-ubuntu20.04-{version}
nvidia-{version}
,nvidia-amd64-{version}
,nvidia-ubuntu22.04-{version}
,nvidia-amd64-ubuntu22.04-{version}
nvidia-ubuntu20.04-{version}
,nvidia-amd64-ubuntu20.04-{version}
イメージの使い方
現在の実行環境から自動的にイメージを選択して動かす
AMD64マシンでAMD64イメージを動かす
AMD64マシンでARM64イメージを動かす(要QEMU)
または
ARM64マシンでARM64イメージを動かす
ARM64マシンでAMD64イメージを動かす(要QEMU)
または
関連 Issue
スクリーンショット・動画など
その他