Skip to content
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

Support for Windows arm64 #122

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading