Skip to content

Commit aff336e

Browse files
committed
if: matrix.os != 'Android' || inputs.build_android
1 parent a0fbaa0 commit aff336e

File tree

2 files changed

+57
-13
lines changed

2 files changed

+57
-13
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -997,14 +997,24 @@ jobs:
997997
steps:
998998
- uses: actions/download-artifact@v4
999999
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
10021002

10031003
- uses: actions/download-artifact@v4
10041004
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
10071012

1013+
- uses: actions/download-artifact@v4
1014+
with:
1015+
name: Windows-arm64-installer-offline
1016+
path: ${{ github.workspace }}/tmp/offline/arm64
1017+
10081018
- name: Create Release
10091019
env:
10101020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1020,7 +1030,7 @@ jobs:
10201030
gh release create ${{ needs.context.outputs.swift_tag }} -R ${{ github.repository }} --latest=${latest}
10211031
10221032
# AMD64
1023-
cd ${{ github.workspace }}/tmp/amd64
1033+
cd ${{ github.workspace }}/tmp/online/amd64
10241034
10251035
mv installer.exe installer-amd64.exe
10261036
gh release upload ${{ needs.context.outputs.swift_tag }} installer-amd64.exe -R ${{ github.repository }}
@@ -1029,10 +1039,42 @@ jobs:
10291039
gh release upload ${{ needs.context.outputs.swift_tag }} installer-amd64.exe.sha256 -R ${{ github.repository }}
10301040
10311041
# ARM64
1032-
cd ${{ github.workspace }}/tmp/arm64
1042+
cd ${{ github.workspace }}/tmp/online/arm64
10331043
10341044
mv installer.exe installer-arm64.exe
10351045
gh release upload ${{ needs.context.outputs.swift_tag }} installer-arm64.exe -R ${{ github.repository }}
10361046
10371047
shasum -a 256 installer-arm64.exe > installer-arm64.exe.sha256
10381048
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 }}

.github/workflows/swift-toolchain.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,7 +2175,7 @@ jobs:
21752175
run: |
21762176
cd ${{ github.workspace }}/SourceCache/swift/Runtimes
21772177
cmake -P Resync.cmake
2178-
2178+
21792179
- name: Configure Dispatch (C parts only)
21802180
if: matrix.os != 'Android' || inputs.build_android
21812181
uses: ./SourceCache/ci-build/.github/actions/configure-cmake-project
@@ -5170,7 +5170,7 @@ jobs:
51705170
if: ${{ inputs.release }}
51715171
uses: actions/upload-artifact@v4
51725172
with:
5173-
name: Windows-${{ matrix.arch }}-installer
5173+
name: Windows-${{ matrix.arch }}-installer-online
51745174
path: ${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/installer.exe
51755175

51765176
- name: Upload msi's and cab's
@@ -5191,11 +5191,13 @@ jobs:
51915191
runs-on: ${{ inputs.default_build_runner }}
51925192

51935193
steps:
5194-
- uses: actions/download-artifact@v4
5194+
- name: Download Swift SDK Installer (${{ inputs.release && 'online' || 'offline' }})
5195+
uses: actions/download-artifact@v4
51955196
with:
5196-
name: Windows-${{ inputs.build_arch }}-installer-offline
5197+
name: Windows-${{ inputs.build_arch }}-installer-${{ inputs.release && 'online' || 'offline' }}
51975198
path: ${{ github.workspace }}/tmp
51985199

5200+
51995201
# TODO(compnerd): migrate this to compnerd/gha-setup-swift after the work that @mangini is doing is completed
52005202
- run: |
52015203
function Update-EnvironmentVariables {
@@ -5255,12 +5257,12 @@ jobs:
52555257
arch: [ x86_64, aarch64 ]
52565258

52575259
steps:
5258-
- name: Download Swift SDK
5260+
- name: Download Swift SDK Installer (${{ inputs.release && 'online' || 'offline' }})
52595261
uses: actions/download-artifact@v4
52605262
with:
5261-
name: Windows-${{ inputs.build_arch }}-installer-offline
5263+
name: Windows-${{ inputs.build_arch }}-installer-${{ inputs.release && 'online' || 'offline' }}
52625264
path: ${{ github.workspace }}/tmp
5263-
5265+
52645266
# TODO(compnerd): migrate this to compnerd/gha-setup-swift after the work that @mangini is doing is completed
52655267
- name: Install Swift SDK
52665268
run: |

0 commit comments

Comments
 (0)