Copilot: IS_COPILOT=true env disables buildNative
This commit is contained in:
parent
93abf3e721
commit
5d9df120cc
3
.github/workflows/copilot-setup-steps.yml
vendored
3
.github/workflows/copilot-setup-steps.yml
vendored
@ -17,6 +17,9 @@ jobs:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
IS_COPILOT: true
|
||||
|
||||
steps:
|
||||
- name: Checkout code including submodules
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user