Skip to content

Commit 9ec756d

Browse files
authored
Do not cleanup MSVC and CUDA on Windows non-ephemeral runners (#1398)
1 parent d074c91 commit 9ec756d

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

windows/internal/setup.bat

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ IF "%DEBUG%" == "" (
7575
set LIBTORCH_PREFIX=libtorch-win-%VARIANT%-debug
7676
)
7777

78-
:: remove files to save space.
79-
rmdir /s /q "C:/Program Files/NVIDIA GPU Computing Toolkit/"
80-
rmdir /s /q "C:/Program Files (x86)/Microsoft Visual Studio/"
81-
8278
7z a -tzip "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" libtorch\*
8379
:: Cleanup raw data to save space
8480
rmdir /s /q libtorch

windows/internal/vs2019_install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ if (($exitCode -ne 0) -and ($exitCode -ne 3010)) {
5151
}
5252
Start-Process "${PWD}\Collect.exe" -NoNewWindow -Wait -PassThru
5353
New-Item -Path "C:\w\build-results" -ItemType "directory" -Force
54-
Copy-Item -Path "C:\Users\circleci\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\"
54+
Copy-Item -Path "C:\Users\${env:USERNAME}\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\"
5555
exit 1
5656
}

windows/internal/vs2022_install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ if (($exitCode -ne 0) -and ($exitCode -ne 3010)) {
5151
}
5252
Start-Process "${PWD}\Collect.exe" -NoNewWindow -Wait -PassThru
5353
New-Item -Path "C:\w\build-results" -ItemType "directory" -Force
54-
Copy-Item -Path "C:\Users\circleci\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\"
54+
Copy-Item -Path "C:\Users\${env:USERNAME}\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\"
5555
exit 1
5656
}

0 commit comments

Comments
 (0)