Fixed CI issues
This commit is contained in:
parent
77df8671e6
commit
6efef3622b
2 changed files with 4 additions and 2 deletions
|
@ -24,6 +24,7 @@ group = "com.jetpackduba"
|
||||||
version = projectVersion
|
version = projectVersion
|
||||||
|
|
||||||
val isLinuxAarch64 = (properties.getOrDefault("isLinuxAarch64", "false") as String).toBoolean()
|
val isLinuxAarch64 = (properties.getOrDefault("isLinuxAarch64", "false") as String).toBoolean()
|
||||||
|
val useCross = (properties.getOrDefault("useCross", "false") as String).toBoolean()
|
||||||
|
|
||||||
|
|
||||||
sourceSets.getByName("main") {
|
sourceSets.getByName("main") {
|
||||||
|
@ -220,7 +221,7 @@ fun generateKotlinFromUdl() {
|
||||||
fun buildRust() {
|
fun buildRust() {
|
||||||
exec {
|
exec {
|
||||||
println("Build rs called")
|
println("Build rs called")
|
||||||
val binary = if (currentOs() == OS.LINUX) {
|
val binary = if (currentOs() == OS.LINUX && useCross) {
|
||||||
"cross"
|
"cross"
|
||||||
} else {
|
} else {
|
||||||
"cargo"
|
"cargo"
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
isLinuxAarch64=false
|
isLinuxAarch64=false
|
||||||
|
useCross=false
|
Loading…
Reference in a new issue