Skip to content

Commit e70db36

Browse files
committed
Add support for the swift.org windows arm64 builds
1 parent b6c5fc1 commit e70db36

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

action.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ inputs:
99
tag:
1010
description: 'Tag for swift.org builds. Only specifiy when using official Swift toolchains from swift.org'
1111
required: false
12+
build_arch:
13+
description: 'Build architecture (amd64 or arm64). Only specifiy when using official Swift toolchains from swift.org'
14+
required: false
1215

1316
# for custom toolchains:
1417
github-repo:
@@ -228,7 +231,11 @@ runs:
228231
if ("${{ steps.validation.outputs.use_custom_url }}" -eq "1") {
229232
Invoke-Installer -LocalPath "${{ inputs.release-asset-name }}" -InstallArgs ("/quiet")
230233
} else {
231-
Invoke-Installer -URL "https://download.swift.org/${{ inputs.branch }}/windows10/swift-${{ inputs.tag }}/swift-${{ inputs.tag }}-windows10.exe" -InstallArgs ("/quiet")
234+
if ("${{ input.build_arch }}" -ne "arm64") {
235+
Invoke-Installer -URL "https://download.swift.org/${{ inputs.branch }}/windows10/swift-${{ inputs.tag }}/swift-${{ inputs.tag }}-windows10.exe" -InstallArgs ("/quiet")
236+
else {
237+
Invoke-Installer -URL "https://download.swift.org/${{ inputs.branch }}/windows10-arm64/swift-${{ inputs.tag }}/swift-${{ inputs.tag }}-windows10-arm64.exe" -InstallArgs ("/quiet")
238+
}
232239
}
233240
Update-EnvironmentVariables
234241

0 commit comments

Comments
 (0)