Skip to content

Commit

Permalink
Do not cleanup MSVC and CUDA on Windows non-ephemeral runners (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
huydhn authored May 3, 2023
1 parent d074c91 commit 9ec756d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions windows/internal/setup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ IF "%DEBUG%" == "" (
set LIBTORCH_PREFIX=libtorch-win-%VARIANT%-debug
)

:: remove files to save space.
rmdir /s /q "C:/Program Files/NVIDIA GPU Computing Toolkit/"
rmdir /s /q "C:/Program Files (x86)/Microsoft Visual Studio/"

7z a -tzip "%LIBTORCH_PREFIX%-%PYTORCH_BUILD_VERSION%.zip" libtorch\*
:: Cleanup raw data to save space
rmdir /s /q libtorch
Expand Down
2 changes: 1 addition & 1 deletion windows/internal/vs2019_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ if (($exitCode -ne 0) -and ($exitCode -ne 3010)) {
}
Start-Process "${PWD}\Collect.exe" -NoNewWindow -Wait -PassThru
New-Item -Path "C:\w\build-results" -ItemType "directory" -Force
Copy-Item -Path "C:\Users\circleci\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\"
Copy-Item -Path "C:\Users\${env:USERNAME}\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\"
exit 1
}
2 changes: 1 addition & 1 deletion windows/internal/vs2022_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ if (($exitCode -ne 0) -and ($exitCode -ne 3010)) {
}
Start-Process "${PWD}\Collect.exe" -NoNewWindow -Wait -PassThru
New-Item -Path "C:\w\build-results" -ItemType "directory" -Force
Copy-Item -Path "C:\Users\circleci\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\"
Copy-Item -Path "C:\Users\${env:USERNAME}\AppData\Local\Temp\vslogs.zip" -Destination "C:\w\build-results\"
exit 1
}

0 comments on commit 9ec756d

Please sign in to comment.