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: 1 addition & 1 deletion .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
needs: check_changes
if: needs.check_changes.outputs.must_build == 'true'
env:
SKIP_LLAMA_ASSETS: "true"
INCLUDE_LLAMA_ASSETS: "false"

steps:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ jobs:
echo "google-services.json created successfully"

- name: Assemble Release APK
env:
INCLUDE_LLAMA_ASSETS: "true"
run: |
variant_upper=$(echo "${{ matrix.variant }}" | tr '[:lower:]' '[:upper:]')
flox activate -d flox/base -- ./gradlew :app:assemble${variant_upper}Release --no-daemon \
Expand Down
14 changes: 7 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -774,13 +774,13 @@ 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)
!System.getenv("INCLUDE_LLAMA_ASSETS")
.equals("true", ignoreCase = true)

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

val noCompress =
Expand Down Expand Up @@ -865,7 +865,7 @@ afterEvaluate {
if (!skipLlamaAssets) {
dependsOn(bundleLlamaV8Assets)
}
if (!isCiCd) {
if (!isCiCd && !skipLlamaAssets) {
dependsOn("assetsDownloadDebug")
}
Comment thread
jomen-adfa marked this conversation as resolved.
}
Expand All @@ -888,7 +888,7 @@ afterEvaluate {
if (!skipLlamaAssets) {
dependsOn(bundleLlamaV7Assets)
}
if (!isCiCd) {
if (!isCiCd && !skipLlamaAssets) {
dependsOn("assetsDownloadDebug")
}
}
Expand Down
Loading