Copilot: IS_COPILOT=true env disables buildNative

This commit is contained in:
Catfriend1 2025-07-14 02:58:57 +02:00
parent 93abf3e721
commit 5d9df120cc
2 changed files with 11 additions and 4 deletions

View File

@ -17,6 +17,9 @@ jobs:
permissions:
contents: read
env:
IS_COPILOT: true
steps:
- name: Checkout code including submodules
uses: actions/checkout@v4

View File

@ -143,10 +143,14 @@ tasks.register<Delete>("deleteUnsupportedPlayTranslations") {
}
project.afterEvaluate {
android.buildTypes.forEach {
val capitalizedName = it.name.replaceFirstChar { ch -> ch.uppercase() }
tasks.named("merge${capitalizedName}JniLibFolders") {
dependsOn(":syncthing:buildNative")
val isCopilot = System.getenv("IS_COPILOT")?.toBoolean() ?: false
if (!isCopilot) {
android.buildTypes.forEach {
val capitalizedName = it.name.replaceFirstChar { ch -> ch.uppercase() }
tasks.named("merge${capitalizedName}JniLibFolders") {
dependsOn(":syncthing:buildNative")
}
}
}
}