Skip to content

Commit

Permalink
Merge pull request #320 from h-vetinari/swap
Browse files Browse the repository at this point in the history
opportunistically set larger swap file on windows
  • Loading branch information
xhochy authored May 17, 2024
2 parents a76a0a1 + ca58789 commit d4ae011
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipe/run_conda_forge_build_setup_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ if "%SET_PAGEFILE%" NEQ "" (
if "%CI%" == "azure" (
REM use different drive than CONDA_BLD_PATH-location for pagefile
if "%CONDA_BLD_PATH%" == "C:\\bld\\" (
echo CONDA_BLD_PATH=%CONDA_BLD_PATH%; Setting pagefile size to 8GB on D:
echo CONDA_BLD_PATH=%CONDA_BLD_PATH%; Setting pagefile size to 16GB on D:
REM Inspired by:
REM https://blog.danskingdom.com/allow-others-to-run-your-powershell-scripts-from-a-batch-file-they-will-love-you-for-it/
REM Drive-letter needs to be escaped in quotes
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%EntryPointPath%' -MinimumSize 8GB -MaximumSize 8GB -DiskRoot \"D:\""
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%EntryPointPath%' -MinimumSize 8GB -MaximumSize 16GB -DiskRoot \"D:\""
)
if "%CONDA_BLD_PATH%" == "D:\\bld\\" (
echo CONDA_BLD_PATH=%CONDA_BLD_PATH%; Setting pagefile size to 8GB on C:
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%EntryPointPath%' -MinimumSize 8GB -MaximumSize 8GB -DiskRoot \"C:\""
echo CONDA_BLD_PATH=%CONDA_BLD_PATH%; Setting pagefile size to 16GB on C:
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%EntryPointPath%' -MinimumSize 8GB -MaximumSize 16GB -DiskRoot \"C:\""
)
)
)
Expand Down

0 comments on commit d4ae011

Please sign in to comment.