From 505c09765954c931ac6a29e92dde76d94011c98b Mon Sep 17 00:00:00 2001 From: tarsin Date: Sun, 23 Oct 2022 12:35:05 +0800 Subject: [PATCH] Build with jdk19 and enable parallel-gc https://blog.bitrise.io/post/switch-to-jdk-17-parallel-gc-and-speed-up-your-android-builds-by-9-20 --- .github/workflows/ci.yml | 4 ++-- .github/workflows/pull_request.yml | 4 ++-- .github/workflows/releases.yml | 4 ++-- gradle.properties | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eed8f2354..b3fee3ef7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,11 @@ jobs: with: submodules: 'recursive' - - name: Setup Java 11 + - name: Setup Java 19 uses: actions/setup-java@v3 with: distribution: temurin - java-version: 11 + java-version: 19 - name: Install NDK run: | diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 4f74c6c01..c01f08417 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,11 +12,11 @@ jobs: with: submodules: 'recursive' - - name: Setup Java 11 + - name: Setup Java 19 uses: actions/setup-java@v3 with: distribution: temurin - java-version: 11 + java-version: 19 - name: Install NDK run: | diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 63077bed8..29bc61acb 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -15,11 +15,11 @@ jobs: with: submodules: 'recursive' - - name: Setup Java 11 + - name: Setup Java 19 uses: actions/setup-java@v3 with: distribution: temurin - java-version: 11 + java-version: 19 - name: Install NDK run: | diff --git a/gradle.properties b/gradle.properties index 7d32adc36..036cf9cd4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m -# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8 -XX:+UseParallelGC # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit