Skip to content

Commit 86c86db

Browse files
hjyamauchicompnerd
authored andcommitted
Add support for the swift.org windows arm64 builds
1 parent b6c5fc1 commit 86c86db

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

action.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ 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+
default: 'amd64'
15+
required: true
1216

1317
# for custom toolchains:
1418
github-repo:
@@ -228,7 +232,11 @@ runs:
228232
if ("${{ steps.validation.outputs.use_custom_url }}" -eq "1") {
229233
Invoke-Installer -LocalPath "${{ inputs.release-asset-name }}" -InstallArgs ("/quiet")
230234
} else {
231-
Invoke-Installer -URL "https://download.swift.org/${{ inputs.branch }}/windows10/swift-${{ inputs.tag }}/swift-${{ inputs.tag }}-windows10.exe" -InstallArgs ("/quiet")
235+
if ("${{ input.build_arch }}" -eq "amd64") {
236+
Invoke-Installer -URL "https://download.swift.org/${{ inputs.branch }}/windows10/swift-${{ inputs.tag }}/swift-${{ inputs.tag }}-windows10.exe" -InstallArgs ("/quiet")
237+
else {
238+
Invoke-Installer -URL "https://download.swift.org/${{ inputs.branch }}/windows10-${{ input.build_arch }}/swift-${{ inputs.tag }}/swift-${{ inputs.tag }}-windows10-${{ input.build_arch }}.exe" -InstallArgs ("/quiet")
239+
}
232240
}
233241
Update-EnvironmentVariables
234242

0 commit comments

Comments
 (0)