ci: bound compiler concurrency and size Kotlin heap
This commit is contained in:
1 parent
004d4622c4
commit
5006d1c7a8
1 file changed
+7
-1
@@ -26,5 +26,11 @@ jobs:
|
||||
run: |
|
||||
$ErrorActionPreference = 'Stop'
|
||||
if ((git rev-parse HEAD).Trim() -ne $env:GITHUB_SHA) { throw 'Checkout SHA mismatch' }
|
||||
.\gradlew.bat testDebugUnitTest assembleDebug compileReleaseKotlin --no-daemon --console=plain
|
||||
Get-CimInstance Win32_OperatingSystem | Select-Object TotalVisibleMemorySize, FreePhysicalMemory
|
||||
# A fresh runner compiles both variants from scratch. Keep their compiler
|
||||
# heaps separate in time; the previous shared 2 GiB heap exhausted itself.
|
||||
$buildArgs = @('--no-daemon', '--console=plain', '--max-workers=1', '-Pkotlin.daemon.jvmargs=-Xmx4096m')
|
||||
.\gradlew.bat testDebugUnitTest assembleDebug @buildArgs
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
.\gradlew.bat compileReleaseKotlin @buildArgs
|
||||
exit $LASTEXITCODE
|
||||
Reference in new issue
Block a user