From d7d954fd2a1b57ab337e846f99335c4b5ec3f4c8 Mon Sep 17 00:00:00 2001 From: spacedandy-agents-simplex <342056592+spacedandy-agents-simplex@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:06:38 +0000 Subject: [PATCH] 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] --- .github/workflows/desktop-linux.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/desktop-linux.yml b/.github/workflows/desktop-linux.yml index 779ab79a1d..46048a7766 100644 --- a/.github/workflows/desktop-linux.yml +++ b/.github/workflows/desktop-linux.yml @@ -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' }}