1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

Add containerd's normalized architectures to archMapper (#2168)

This commit is contained in:
Matthew 2024-01-23 18:44:48 -08:00 committed by GitHub
parent 724a00e9c1
commit c358c37324

View file

@ -238,8 +238,10 @@ func RunnerArch(ctx context.Context) string {
archMapper := map[string]string{
"x86_64": "X64",
"amd64": "X64",
"386": "X86",
"aarch64": "ARM64",
"arm64": "ARM64",
}
if arch, ok := archMapper[info.Architecture]; ok {
return arch