Skip to content

Commit

Permalink
Support for Windows arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Jul 15, 2024
1 parent 7efc21f commit 5187f12
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ALZ/Private/Shared/Get-OsArchitecture.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,21 @@ function Get-OSArchitecture {
"linux_amd64",
"linux_arm64",
"windows_386",
"windows_amd64"
"windows_amd64",
"windows_arm64"
)

if($supportedOsAndArchitectures -notcontains $osAndArchitecture) {
Write-Error "Unsupported OS and architecture combination: $osAndArchitecture"
exit 1
}

if($osAndArchitecture -eq "windows_arm64") {
Write-InformationColoured "Windows arm64 is not currently supported by Terraform, so we will pull the Windows amd64 verison instead and run in emulation mode: https://learn.microsoft.com/en-us/windows/arm/apps-on-arm-x86-emulation" -ForegroundColor Yellow -NewLineBefore -InformationAction Continue
$architecture = "amd64"
$osAndArchitecture = "windows_amd64"
}

return @{
os = $os
architecture = $architecture
Expand Down

0 comments on commit 5187f12

Please sign in to comment.