mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
Enable build cache (#1149)
This commit is contained in:
parent
2244e21e29
commit
77a40aeb2f
4 changed files with 15 additions and 3 deletions
5
.github/workflows/run-check.yml
vendored
5
.github/workflows/run-check.yml
vendored
|
@ -31,7 +31,8 @@ jobs:
|
|||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: ${{ runner.os }}-gradle-v2-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
||||
${{ github.workspace }}/build-cache
|
||||
key: ${{ runner.os }}-gradle-v2-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/libs.versions.toml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-gradle-v2-
|
||||
|
||||
|
@ -52,7 +53,7 @@ jobs:
|
|||
# with the Compose testing library. Also exclude most FDroid-related tasks, as there is no
|
||||
# significant code difference between builds.
|
||||
run: |
|
||||
./gradlew check \
|
||||
./gradlew check --no-daemon \
|
||||
-x testStandardRelease \
|
||||
-x testFdroidDebug \
|
||||
-x testFdroidRelease \
|
||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -11,3 +11,6 @@ Thumbs.db
|
|||
/local.properties
|
||||
local.properties
|
||||
user.properties
|
||||
|
||||
# Gradle build cache
|
||||
/build-cache/
|
||||
|
|
|
@ -4,6 +4,6 @@ android.suppressUnsupportedCompileSdk=34
|
|||
android.useAndroidX=true
|
||||
|
||||
kotlin.code.style=official
|
||||
|
||||
org.gradle.caching=true
|
||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
||||
org.gradle.parallel=true
|
||||
|
|
|
@ -36,5 +36,13 @@ dependencyResolutionManagement {
|
|||
}
|
||||
}
|
||||
|
||||
buildCache {
|
||||
local {
|
||||
isEnabled = true
|
||||
directory = File(rootDir, "build-cache")
|
||||
removeUnusedEntriesAfterDays = 15
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "Bitwarden"
|
||||
include(":app")
|
||||
|
|
Loading…
Reference in a new issue