File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 9
9
tag :
10
10
description : ' Tag for swift.org builds. Only specifiy when using official Swift toolchains from swift.org'
11
11
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
12
15
13
16
# for custom toolchains:
14
17
github-repo :
@@ -228,7 +231,11 @@ runs:
228
231
if ("${{ steps.validation.outputs.use_custom_url }}" -eq "1") {
229
232
Invoke-Installer -LocalPath "${{ inputs.release-asset-name }}" -InstallArgs ("/quiet")
230
233
} 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
+ }
232
239
}
233
240
Update-EnvironmentVariables
234
241
You can’t perform that action at this time.
0 commit comments