@@ -997,14 +997,24 @@ jobs:
997
997
steps :
998
998
- uses : actions/download-artifact@v4
999
999
with :
1000
- name : Windows-amd64-installer
1001
- path : ${{ github.workspace }}/tmp/amd64
1000
+ name : Windows-amd64-installer-online
1001
+ path : ${{ github.workspace }}/tmp/online/ amd64
1002
1002
1003
1003
- uses : actions/download-artifact@v4
1004
1004
with :
1005
- name : Windows-arm64-installer
1006
- path : ${{ github.workspace }}/tmp/arm64
1005
+ name : Windows-arm64-installer-online
1006
+ path : ${{ github.workspace }}/tmp/online/arm64
1007
+
1008
+ - uses : actions/download-artifact@v4
1009
+ with :
1010
+ name : Windows-amd64-installer-offline
1011
+ path : ${{ github.workspace }}/tmp/offline/amd64
1007
1012
1013
+ - uses : actions/download-artifact@v4
1014
+ with :
1015
+ name : Windows-arm64-installer-offline
1016
+ path : ${{ github.workspace }}/tmp/offline/arm64
1017
+
1008
1018
- name : Create Release
1009
1019
env :
1010
1020
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -1020,7 +1030,7 @@ jobs:
1020
1030
gh release create ${{ needs.context.outputs.swift_tag }} -R ${{ github.repository }} --latest=${latest}
1021
1031
1022
1032
# AMD64
1023
- cd ${{ github.workspace }}/tmp/amd64
1033
+ cd ${{ github.workspace }}/tmp/online/ amd64
1024
1034
1025
1035
mv installer.exe installer-amd64.exe
1026
1036
gh release upload ${{ needs.context.outputs.swift_tag }} installer-amd64.exe -R ${{ github.repository }}
@@ -1029,10 +1039,42 @@ jobs:
1029
1039
gh release upload ${{ needs.context.outputs.swift_tag }} installer-amd64.exe.sha256 -R ${{ github.repository }}
1030
1040
1031
1041
# ARM64
1032
- cd ${{ github.workspace }}/tmp/arm64
1042
+ cd ${{ github.workspace }}/tmp/online/ arm64
1033
1043
1034
1044
mv installer.exe installer-arm64.exe
1035
1045
gh release upload ${{ needs.context.outputs.swift_tag }} installer-arm64.exe -R ${{ github.repository }}
1036
1046
1037
1047
shasum -a 256 installer-arm64.exe > installer-arm64.exe.sha256
1038
1048
gh release upload ${{ needs.context.outputs.swift_tag }} installer-arm64.exe.sha256 -R ${{ github.repository }}
1049
+
1050
+ # AMD64
1051
+ cd ${{ github.workspace }}/tmp/offline/amd64
1052
+
1053
+ mv installer.exe installer-offline-amd64.exe
1054
+ gh release upload ${{ needs.context.outputs.swift_tag }} installer-offline-amd64.exe -R ${{ github.repository }}
1055
+
1056
+ shasum -a 256 installer-offline-amd64.exe > installer-offline-amd64.exe.sha256
1057
+ gh release upload ${{ needs.context.outputs.swift_tag }} installer-offline-amd64.exe.sha256 -R ${{ github.repository }}
1058
+
1059
+ # ARM64
1060
+ cd ${{ github.workspace }}/tmp/offline/arm64
1061
+
1062
+ mv installer.exe installer-offline-arm64.exe
1063
+ gh release upload ${{ needs.context.outputs.swift_tag }} installer-offline-arm64.exe -R ${{ github.repository }}
1064
+
1065
+ shasum -a 256 installer-offline-arm64.exe > installer-offline-arm64.exe.sha256
1066
+ gh release upload ${{ needs.context.outputs.swift_tag }} installer-offline-arm64.exe.sha256 -R ${{ github.repository }}
1067
+
1068
+ binary-size :
1069
+ needs : [context, release]
1070
+ if : inputs.create_release == true
1071
+ name : Record Swift Toolchain Binary Sizes
1072
+ permissions :
1073
+ contents : read
1074
+ id-token : write
1075
+ uses : ./.github/workflows/release-swift-toolchain-binary-sizes.yml
1076
+ with :
1077
+ toolchain_version : ${{ needs.context.outputs.swift_tag }}
1078
+ dry_run : false
1079
+ secrets :
1080
+ SWIFT_TOOLCHAIN_UPLOADER_ROLE_ARN : ${{ secrets.SWIFT_TOOLCHAIN_UPLOADER_ROLE_ARN }}
0 commit comments