Skip to content

Commit 19f2e33

Browse files
committed
Use caching and parallel for faster builds.
This also uses the Gradle Build Action to enable faster builds with caching. The Gradle Build Action also validates the Gradle wrapper by default
1 parent e147d47 commit 19f2e33

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
java-version: 17
2828
cache: gradle
2929

30-
- name: Validate Gradle Wrapper
31-
uses: gradle/wrapper-validation-action@v3
30+
- name: Setup Gradle and validate wrapper
31+
uses: gradle/actions/setup-gradle@v4
3232

3333
- name: Build with Gradle
3434
run: ./gradlew qa

.github/workflows/diffuse.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
- name: Install NDK
3232
run: echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${{ env.NDK_VERSION }}"
3333

34-
- name: Validate Gradle Wrapper
35-
uses: gradle/wrapper-validation-action@v1
34+
- name: Setup Gradle and validate Gradle Wrapper
35+
uses: gradle/actions/setup-gradle@v4
3636

3737
- name: Cache base apk
3838
id: cache-base

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ org.gradle.configuration-cache=false
99
# See: https://docs.gradle.org/current/userguide/toolchains.html#sub:disable_auto_provision
1010
org.gradle.java.installations.auto-download=false
1111

12+
org.gradle.caching=true
13+
org.gradle.parallel=true
14+
1215
# Uncomment these to build libsignal from source.
1316
# libsignalClientPath=../libsignal
1417
# org.gradle.dependency.verification=lenient

0 commit comments

Comments
 (0)