File tree 1 file changed +9
-1
lines changed
1 file changed +9
-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
+ default : ' amd64'
15
+ required : true
12
16
13
17
# for custom toolchains:
14
18
github-repo :
@@ -228,7 +232,11 @@ runs:
228
232
if ("${{ steps.validation.outputs.use_custom_url }}" -eq "1") {
229
233
Invoke-Installer -LocalPath "${{ inputs.release-asset-name }}" -InstallArgs ("/quiet")
230
234
} 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
+ }
232
240
}
233
241
Update-EnvironmentVariables
234
242
You can’t perform that action at this time.
0 commit comments