From 1d56cacae947bfef4e3c3d91aa596a165c003eee Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 4 Oct 2020 19:29:45 -0400 Subject: [PATCH] [CI SKIP] Cache Gradle dependencies for PR build check workflow (#4511) --- .github/runner-files/ci-gradle.properties | 6 ++++++ .github/workflows/pr_build_check.yml | 17 ++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/runner-files/ci-gradle.properties diff --git a/.github/runner-files/ci-gradle.properties b/.github/runner-files/ci-gradle.properties new file mode 100644 index 000000000..5f70cbccf --- /dev/null +++ b/.github/runner-files/ci-gradle.properties @@ -0,0 +1,6 @@ +org.gradle.daemon=false +org.gradle.jvmargs=-Xmx5120m +org.gradle.workers.max=2 + +kotlin.incremental=false +kotlin.compiler.execution.strategy=in-process diff --git a/.github/workflows/pr_build_check.yml b/.github/workflows/pr_build_check.yml index 86e6f330f..cc3c628d5 100644 --- a/.github/workflows/pr_build_check.yml +++ b/.github/workflows/pr_build_check.yml @@ -11,9 +11,24 @@ jobs: steps: - name: Clone repo uses: actions/checkout@v2 + + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v1 + - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 + + - name: Copy CI gradle.properties + run: | + mkdir -p ~/.gradle + cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties + - name: Build project - run: ./gradlew assembleDebug + uses: eskatos/gradle-command-action@v1 + with: + arguments: assembleDebug + wrapper-cache-enabled: true + dependencies-cache-enabled: true + configuration-cache-enabled: true