@@ -3612,16 +3612,16 @@ jobs:
3612
3612
matrix :
3613
3613
include :
3614
3614
- arch : arm64
3615
- cpu : aarch64
3615
+ msarch : arm64
3616
3616
triple_no_api_level : aarch64-unknown-linux-android
3617
3617
- arch : armv7
3618
- cpu : armv7
3618
+ msarch : arm
3619
3619
triple_no_api_level : armv7-unknown-linux-androideabi
3620
3620
- arch : i686
3621
- cpu : i686
3621
+ msarch : x86
3622
3622
triple_no_api_level : i686-unknown-linux-android
3623
3623
- arch : x86_64
3624
- cpu : x86_64
3624
+ msarch : amd64
3625
3625
triple_no_api_level : x86_64-unknown-linux-android
3626
3626
3627
3627
steps :
@@ -3676,6 +3676,12 @@ jobs:
3676
3676
- name : Package SDK
3677
3677
if : inputs.build_android
3678
3678
run : |
3679
+ if ("${{ inputs.build_arch }}" -eq "amd64") {
3680
+ $InstallerPlatform = "x64"
3681
+ } else {
3682
+ $InstallerPlatform = "arm64"
3683
+ }
3684
+
3679
3685
msbuild -nologo -restore -maxCpuCount `
3680
3686
-p:BaseOutputPath=${{ github.workspace }}\BinaryCache\installer\ `
3681
3687
-p:Configuration=Release `
@@ -3686,16 +3692,17 @@ jobs:
3686
3692
-p:PLATFORM_ROOT=${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Android.platform `
3687
3693
-p:SDK_ROOT=${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Android.platform/Developer/SDKs/Android.sdk `
3688
3694
-p:ProductVersion=${{ inputs.swift_version }} `
3689
- -p:ProductArchitecture=${{ matrix.cpu }} `
3695
+ -p:ProductArchitecture=${{ matrix.msarch }} `
3696
+ -p:InstallerPlatform=${InstallerPlatform} `
3690
3697
${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/sdk/drd/sdk.wixproj
3691
3698
3692
3699
- uses : actions/upload-artifact@v4
3693
3700
if : inputs.build_android
3694
3701
with :
3695
3702
name : sdk-android-${{ matrix.arch }}-msi
3696
3703
path : |
3697
- ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.cpu }}/sdk.android.${{ matrix.cpu }}.msi
3698
- ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.cpu }}/sdk.android.${{ matrix.cpu }}.cab
3704
+ ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.msarch }}/sdk.android.${{ matrix.msarch }}.msi
3705
+ ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.msarch }}/sdk.android.${{ matrix.msarch }}.cab
3699
3706
3700
3707
installer :
3701
3708
# TODO: Build this on macOS or make an equivalent Mac-only job
0 commit comments