Skip to content

Commit 1a697d7

Browse files
authored
Upstream install static dependencies (#1036)
* Copy over dependencies for static lib (libxml2, libcurl and zlibstatic * Use the right name for legacy installer
1 parent b434425 commit 1a697d7

File tree

1 file changed

+57
-5
lines changed

1 file changed

+57
-5
lines changed

.github/workflows/swift-toolchain.yml

Lines changed: 57 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4237,7 +4237,7 @@ jobs:
42374237
-p:WindowsRuntimeX64="${{ github.workspace }}/BuildRoot/Library/Developer/Runtimes/" `
42384238
-p:WindowsRuntimeX86="${{ github.workspace }}/BuildRoot/Library/Developer/Runtimes/" `
42394239
-p:VCRedistDir="$([IO.Path]::Combine(${env:VCToolsRedistDir}, "${{ matrix.arch == 'amd64' && 'x64' || 'arm64' }}", "Microsoft.VC143.CRT"))" `
4240-
${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/rtl/msi/rtlmsi.wixproj
4240+
${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/rtl/legacy/msi/rtlmsi.wixproj
42414241
42424242
- name: Package Experimental Shared Runtime
42434243
run: |
@@ -4278,8 +4278,8 @@ jobs:
42784278
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/ide.noasserts.cab
42794279
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.msi
42804280
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.cab
4281-
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.shared.msi
4282-
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.shared.cab
4281+
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.${{ matrix.arch }}.msi
4282+
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.${{ matrix.arch }}.cab
42834283
42844284
- uses: actions/upload-artifact@v4
42854285
with:
@@ -4348,8 +4348,8 @@ jobs:
43484348
with:
43494349
name: Windows-${{ matrix.arch }}-rtl-shared-msi
43504350
path: |
4351-
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.shared.msi
4352-
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.shared.cab
4351+
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.${{ matrix.arch }}.msi
4352+
${{ github.workspace }}/BinaryCache/installer/Release/${{ matrix.arch }}/rtl.${{ matrix.arch }}.cab
43534353
43544354
package_windows_platform:
43554355
# TODO: Build this on macOS or make an equivalent Mac-only job
@@ -4387,6 +4387,18 @@ jobs:
43874387
with:
43884388
name: Windows-amd64-shared-experimental-sdk
43894389
path: ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform
4390+
- uses: actions/download-artifact@v4
4391+
with:
4392+
name: Windows-amd64-libxml2-${{ inputs.libxml2_version }}
4393+
path: ${{ github.workspace }}/BuildRoot/Library/libxml2
4394+
- uses: actions/download-artifact@v4
4395+
with:
4396+
name: Windows-amd64-curl-${{ inputs.curl_version }}
4397+
path: ${{ github.workspace }}/BuildRoot/Library/curl
4398+
- uses: actions/download-artifact@v4
4399+
with:
4400+
name: Windows-amd64-zlib-${{ inputs.zlib_version }}
4401+
path: ${{ github.workspace }}/BuildRoot/Library/zlib
43904402

43914403
- run: |
43924404
New-Item -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/x86_64/" -ItemType Directory -Force | Out-Null
@@ -4406,6 +4418,10 @@ jobs:
44064418
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/BlocksRuntime.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/x86_64/
44074419
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/dispatch.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/x86_64/
44084420
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/libswiftDispatch.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/x86_64/
4421+
4422+
Move-Item ${{ github.workspace }}/BuildRoot/Library/libxml2/lib/libxml2s.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/x86_64/
4423+
Move-Item ${{ github.workspace }}/BuildRoot/Library/curl/lib/libcurl.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/x86_64/
4424+
Move-Item ${{ github.workspace }}/BuildRoot/Library/zlib/lib/zlibstatic.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/x86_64/
44094425
44104426
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/Foundation.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/x86_64/
44114427
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/FoundationXML.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/x86_64/
@@ -4457,6 +4473,18 @@ jobs:
44574473
with:
44584474
name: Windows-arm64-shared-experimental-sdk
44594475
path: ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform
4476+
- uses: actions/download-artifact@v4
4477+
with:
4478+
name: Windows-arm64-libxml2-${{ inputs.libxml2_version }}
4479+
path: ${{ github.workspace }}/BuildRoot/Library/libxml2
4480+
- uses: actions/download-artifact@v4
4481+
with:
4482+
name: Windows-arm64-curl-${{ inputs.curl_version }}
4483+
path: ${{ github.workspace }}/BuildRoot/Library/curl
4484+
- uses: actions/download-artifact@v4
4485+
with:
4486+
name: Windows-arm64-zlib-${{ inputs.zlib_version }}
4487+
path: ${{ github.workspace }}/BuildRoot/Library/zlib
44604488

44614489
- run: |
44624490
New-Item -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/aarch64/" -ItemType Directory -Force
@@ -4477,6 +4505,10 @@ jobs:
44774505
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/dispatch.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/aarch64/
44784506
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/libswiftDispatch.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/aarch64/
44794507
4508+
Move-Item ${{ github.workspace }}/BuildRoot/Library/libxml2/lib/libxml2s.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/aarch64/
4509+
Move-Item ${{ github.workspace }}/BuildRoot/Library/curl/lib/libcurl.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/aarch64/
4510+
Move-Item ${{ github.workspace }}/BuildRoot/Library/zlib/lib/zlibstatic.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/aarch64/
4511+
44804512
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/Foundation.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/aarch64/
44814513
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/FoundationXML.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/aarch64/
44824514
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/FoundationNetworking.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/aarch64/
@@ -4527,6 +4559,19 @@ jobs:
45274559
with:
45284560
name: Windows-x86-shared-experimental-sdk
45294561
path: ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform
4562+
- uses: actions/download-artifact@v4
4563+
with:
4564+
name: Windows-x86-libxml2-${{ inputs.libxml2_version }}
4565+
path: ${{ github.workspace }}/BuildRoot/Library/libxml2
4566+
- uses: actions/download-artifact@v4
4567+
with:
4568+
name: Windows-x86-curl-${{ inputs.curl_version }}
4569+
path: ${{ github.workspace }}/BuildRoot/Library/curl
4570+
- uses: actions/download-artifact@v4
4571+
with:
4572+
name: Windows-x86-zlib-${{ inputs.zlib_version }}
4573+
path: ${{ github.workspace }}/BuildRoot/Library/zlib
4574+
45304575
- run: |
45314576
New-Item -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/i686/" -ItemType Directory -Force
45324577
@@ -4546,6 +4591,10 @@ jobs:
45464591
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/dispatch.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/i686/
45474592
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/libswiftDispatch.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/i686/
45484593
4594+
Move-Item ${{ github.workspace }}/BuildRoot/Library/libxml2/lib/libxml2s.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/i686/
4595+
Move-Item ${{ github.workspace }}/BuildRoot/Library/curl/lib/libcurl.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/i686/
4596+
Move-Item ${{ github.workspace }}/BuildRoot/Library/zlib/lib/zlibstatic.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/WindowsExperimental.sdk/usr/lib/swift_static/windows/i686/
4597+
45494598
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/Foundation.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/i686/
45504599
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/FoundationXML.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/i686/
45514600
Move-Item ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/FoundationNetworking.lib ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/lib/swift/windows/i686/
@@ -4632,6 +4681,7 @@ jobs:
46324681
-p:WindowsExperimentalRuntimeARM64="${{ github.workspace }}/BuildRoot/Library/Developer/Runtimes.Experimental/Windows-aarch64" `
46334682
-p:WindowsExperimentalRuntimeX64="${{ github.workspace }}/BuildRoot/Library/Developer/Runtimes.Experimental/Windows-x86_64" `
46344683
-p:WindowsExperimentalRuntimeX86="${{ github.workspace }}/BuildRoot/Library/Developer/Runtimes.Experimental/Windows-i686" `
4684+
-p:IncludeLegacySDK=True `
46354685
${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/platforms/windows/windows.wixproj
46364686
- name: Write DLL Expectations
46374687
id: write-expectations
@@ -5074,6 +5124,7 @@ jobs:
50745124
-p:ProductArchitecture=${{ matrix.arch }} `
50755125
-p:ProductVersion=${{ inputs.swift_version }}-${{ inputs.swift_tag }} `
50765126
-p:ToolchainVariants="`"asserts;noasserts`"" `
5127+
-p:IncludeLegacySDK=True `
50775128
${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/bundle/installer.wixproj
50785129
50795130
- name: Generate Build Provenance (offline installer)
@@ -5120,6 +5171,7 @@ jobs:
51205171
-p:ProductArchitecture=${{ matrix.arch }} `
51215172
-p:ProductVersion=${{ inputs.swift_version }}-${{ inputs.swift_tag }} `
51225173
-p:ToolchainVariants="`"asserts;noasserts`"" `
5174+
-p:IncludeLegacySDK=True `
51235175
${{ github.workspace }}/SourceCache/swift-installer-scripts/platforms/Windows/bundle/installer.wixproj
51245176
51255177
- name: Prepare layout for upload

0 commit comments

Comments
 (0)