From 52c2e0a4387a7c40388ea7683e71e1dfa793c6e2 Mon Sep 17 00:00:00 2001
From: Iliyan Germanov <iliyan.germanov971@gmail.com>
Date: Sun, 18 Sep 2022 17:34:25 +0300
Subject: [PATCH] Fix CI crashing #1: reduce RAM usage

---
 .github/workflows/lint.yml | 2 +-
 gradle.properties          | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index ed347cd51c..29fdfbfeed 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -32,7 +32,7 @@ jobs:
 
       # RUN: Lint
       - name: Lint (Debug)
-        run: ./gradlew lintDebug --no-daemon
+        run: ./gradlew lintDebug
 
       - name: Upload Lint report to GitHub (see artificats)
         if: always()
diff --git a/gradle.properties b/gradle.properties
index 8a4607a122..5f0d37059c 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -20,8 +20,8 @@ android.enableJetifier=true
 # Kotlin code style for this project: "official" or "obsolete":
 kotlin.code.style=official
 # Speed-up Gradle Builds! (OPTIMIZATION)
-org.gradle.jvmargs=-Xmx19g -XX:MaxMetaspaceSize=800m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC
-kotlin.daemon.jvmargs=-Xmx11g -XX:MaxMetaspaceSize=700m -XX:+UseParallelGC
+org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=800m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC
+kotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=700m -XX:+UseParallelGC
 org.gradle.configureondemand=true
 org.gradle.parallel=true
 org.gradle.workers.max=8