mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 19:42:13 +00:00
ci: give the desktop app job's Kotlin compiler 4 GB
After the merge of master, compiling :common:compileKotlinDesktop failed with "Not enough memory to run compilation" (run 39237291485): the Kotlin compiler daemon takes gradle.properties' 2 GB heap. The app job's two Gradle calls pass kotlin.daemon.jvmargs=-Xmx4g; the runner has 15 GB. gradle.properties, which the app builds use, is unchanged. [claude-test:desktop] [ci-backend]
This commit is contained in:
1 parent
8048b55056
commit
d7d954fd2a
1 file changed
+3
-2
@@ -266,12 +266,13 @@ jobs:
|
||||
distribution: corretto
|
||||
java-version: ${{ env.JAVA_VER }}
|
||||
|
||||
# the Kotlin compiler daemon otherwise gets gradle.properties' 2 GB, which compiling :common runs out of
|
||||
- name: Build app
|
||||
id: build
|
||||
if: ${{ !cancelled() && steps.core.outcome == 'success' }}
|
||||
working-directory: apps/multiplatform
|
||||
run: |
|
||||
./gradlew --no-daemon --console=plain -Psimplex.assets.dir=../../assets :desktop:createDistributable
|
||||
./gradlew --no-daemon --console=plain -Psimplex.assets.dir=../../assets -Pkotlin.daemon.jvmargs=-Xmx4g :desktop:createDistributable
|
||||
app=release/main/app/simplex
|
||||
ls -la "$app/bin" "$app/lib/app/resources"
|
||||
du -sh "$app"
|
||||
@@ -295,7 +296,7 @@ jobs:
|
||||
- name: Run desktop tests
|
||||
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
||||
working-directory: apps/multiplatform
|
||||
run: ./gradlew --no-daemon --console=plain -Psimplex.assets.dir=../../assets :common:desktopTest
|
||||
run: ./gradlew --no-daemon --console=plain -Psimplex.assets.dir=../../assets -Pkotlin.daemon.jvmargs=-Xmx4g :common:desktopTest
|
||||
|
||||
- name: Report desktop tests
|
||||
if: ${{ !cancelled() && steps.build.outcome == 'success' }}
|
||||
|
||||
Reference in new issue
Block a user