mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-09-28 00:12:57 +00:00
feat: Add support for different processor architectures (#518)
ARM, ARM64
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export default function getArch(arch: string): string {
|
||||
switch (arch) {
|
||||
case 'x64':
|
||||
return '64bit';
|
||||
case 'arm':
|
||||
return 'ARM';
|
||||
case 'arm64':
|
||||
return 'ARM64';
|
||||
default:
|
||||
throw new Error(`${arch} is not supported`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user