Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
timeout-minutes: 60
needs: check_changes
if: needs.check_changes.outputs.must_build == 'true'
env:
SKIP_LLAMA_ASSETS: "true"

steps:

Expand Down
23 changes: 19 additions & 4 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,17 @@ tasks.register("recompressApk") {

val isCiCd = System.getenv("GITHUB_ACTIONS") == "true"

val skipLlamaAssets =
providers
.environmentVariable("SKIP_LLAMA_ASSETS")
.map { it.equals("true", ignoreCase = true) }
.getOrElse(false) ||
(project.findProperty("skipLlamaAssets")?.toString()?.toBoolean() ?: false)

if (skipLlamaAssets) {
project.logger.lifecycle("SKIP_LLAMA_ASSETS enabled - debug assemble tasks will skip llama asset bundling.")
}

val noCompress =
setOf(
"so",
Expand All @@ -771,12 +782,12 @@ afterEvaluate {
tasks
.matching { it.name.contains("V8") && it.name.lowercase().contains("lint") }
.configureEach {
dependsOn(bundleLlamaV8Assets)
if (!skipLlamaAssets) { dependsOn(bundleLlamaV8Assets) }
}
tasks
.matching { it.name.contains("V7") && it.name.lowercase().contains("lint") }
.configureEach {
dependsOn(bundleLlamaV7Assets)
if (!skipLlamaAssets) { dependsOn(bundleLlamaV7Assets) }
}

tasks.named("assembleV8Release").configure {
Expand Down Expand Up @@ -828,7 +839,9 @@ afterEvaluate {
}
}

dependsOn(bundleLlamaV8Assets)
if (!skipLlamaAssets) {
dependsOn(bundleLlamaV8Assets)
}
if (!isCiCd) {
dependsOn("assetsDownloadDebug")
}
Expand All @@ -849,7 +862,9 @@ afterEvaluate {
}
}

dependsOn(bundleLlamaV7Assets)
if (!skipLlamaAssets) {
dependsOn(bundleLlamaV7Assets)
}
if (!isCiCd) {
dependsOn("assetsDownloadDebug")
}
Expand Down
Loading