1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-01-28 16:09:33 +01:00

Fix memory settings

This commit is contained in:
tzugen 2022-04-06 21:00:27 +02:00
parent 41f5520f1f
commit 0128a8b29d
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930

View File

@ -1,11 +1,17 @@
version: 3
version: 2.1
parameters:
memory-config:
type: string
default: "-Xmx6g -Xms256m -XX:MaxMetaspaceSize=1g -verbose:gc -Xlog:gc*"
jobs:
build:
docker:
- image: cimg/android:2022.03.1
working_directory: ~/ultrasonic
environment:
JVM_OPTS: -Xmx3200m
JVM_OPTS: << pipeline.parameters.memory-config >>
JAVA_TOOL_OPTIONS: << pipeline.parameters.memory-config >>
GRADLE_OPTS: << pipeline.parameters.memory-config >>
steps:
- checkout
- restore_cache:
@ -18,6 +24,7 @@ jobs:
command: |
sed -i '/^org.gradle.jvmargs/d' gradle.properties
sed -i 's/^org.gradle.daemon=true/org.gradle.daemon=false/g' gradle.properties
cat gradle.properties
- run:
name: checkstyle
command: ./gradlew -Pqc ktlintCheck
@ -44,7 +51,7 @@ jobs:
- save_cache:
paths:
- ~/.gradle
key: v1-ultrasonic-{{ .Branch }}-{{ checksum "gradle/libs.versions.toml" }}
key: v2-ultrasonic-{{ .Branch }}-{{ checksum "gradle/libs.versions.toml" }}
- store_artifacts:
path: ultrasonic/build/reports
destination: reports
@ -77,6 +84,10 @@ jobs:
docker:
- image: cimg/android:2022.03.1
working_directory: ~/ultrasonic
environment:
JVM_OPTS: << pipeline.parameters.memory-config >>
JAVA_TOOL_OPTIONS: << pipeline.parameters.memory-config >>
GRADLE_OPTS: << pipeline.parameters.memory-config >>
steps:
- checkout
- restore_cache: