Skip to content

Commit 17c28b7

Browse files
committed
ci: merge runtime tree into toolchain tree in Windows spike
1 parent 65a1fb8 commit 17c28b7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/windows-spike.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ jobs:
9494
shell: pwsh
9595
working-directory: apps/headless
9696
run: |
97+
# The winget install splits the stdlib across two trees. Merge the
98+
# runtime tree into the toolchain tree so swiftc can find it.
99+
$toolchainUsr = 'C:\Users\runneradmin\AppData\Local\Programs\Swift\Toolchains\6.3.3+Asserts\usr'
100+
$runtimeUsr = 'C:\Users\runneradmin\AppData\Local\Programs\Swift\Runtimes\6.3.3\usr'
101+
if (Test-Path $runtimeUsr) {
102+
Write-Host "merging $runtimeUsr into $toolchainUsr"
103+
Get-ChildItem $runtimeUsr -Directory | ForEach-Object {
104+
robocopy $_.FullName (Join-Path $toolchainUsr $_.Name) /E /NFL /NDL /NJH /NJS | Out-Null
105+
}
106+
}
97107
New-Item -ItemType Directory -Force -Path spike-out | Out-Null
98108
# hello world sanity check through the whole toolchain
99109
Set-Content spike-out\hello.swift 'print("hello from windows")'

0 commit comments

Comments
 (0)