mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 03:52:15 +02:00
build(ci): remove IN_PROCESS compiler execution strategy
Added inf5ecb05efc
Related:655516582c
ref: https://github.com/ankidroid/Anki-Android/pull/11341#issuecomment-1129119319 but CI runners now have 16GB RAM, so this is not necessary any more https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories Issue 15368
This commit is contained in:
parent
75ef22e419
commit
7cbf8a1f7d
@ -140,13 +140,6 @@ ext {
|
||||
// Which is 1:1 https://docs.microsoft.com/en-gb/azure/virtual-machines/acu : DS1_v2 - DS15_v2 | 1:1
|
||||
gradleTestMaxParallelForks = 2
|
||||
|
||||
// separate gradle compile process is a major speed improvement, but consumes 2x RAM
|
||||
// the CI machines don't have enough RAM to do that without going in to swap quite a bit
|
||||
// so for CI machines only - to improve reliability despite compilation speed hit, compile kotlin in process
|
||||
println "CI build detected: setting compiler execution strategy to IN_PROCESS"
|
||||
tasks.withType(KotlinCompile).configureEach {
|
||||
compilerExecutionStrategy.set(KotlinCompilerExecutionStrategy.IN_PROCESS)
|
||||
}
|
||||
} else {
|
||||
// Use 50% of cores to account for SMT which doesn't help this workload
|
||||
gradleTestMaxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
|
||||
|
Loading…
Reference in New Issue
Block a user