From c5e1e0a4086a0ed912ab0a1f539d175c4fdbad29 Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Thu, 5 Oct 2023 13:19:12 -0400 Subject: [PATCH] Disable build cache since Github Action runners fail with 'no space left on device' Signed-off-by: Andriy Redko --- .github/workflows/precommit.yml | 9 ++++----- gradle.properties | 2 +- settings.gradle | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml index f4622859916c7..3d94ac4da81f9 100644 --- a/.github/workflows/precommit.yml +++ b/.github/workflows/precommit.yml @@ -15,10 +15,9 @@ jobs: with: java-version: 11 distribution: temurin - cache: gradle - - name: Run Gradle (precommit) - run: | - ./gradlew javadoc precommit --parallel +# - name: Run Gradle (precommit) +# run: | +# ./gradlew javadoc precommit --parallel --no-build-cache - name: Setup docker (missing on MacOS) if: runner.os == 'macos' run: | @@ -27,4 +26,4 @@ jobs: sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock - name: Run Gradle (assemble) run: | - ./gradlew assemble --parallel + ./gradlew assemble --parallel --no-build-cache diff --git a/gradle.properties b/gradle.properties index 7c359ed2b652c..3dacc5044926c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ # # Enable build caching -org.gradle.caching=true +org.gradle.caching=false org.gradle.warning.mode=none org.gradle.parallel=true org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Xss2m \ diff --git a/settings.gradle b/settings.gradle index c04b5997d49b1..ee4ae9d655876 100644 --- a/settings.gradle +++ b/settings.gradle @@ -15,7 +15,7 @@ plugins { buildCache { local { - enabled = true + enabled = false removeUnusedEntriesAfterDays = 14 } }