Fixed CI issues

This commit is contained in:
Abdelilah El Aissaoui 2023-10-29 16:46:31 +01:00
parent 77df8671e6
commit 6efef3622b
No known key found for this signature in database
GPG key ID: 7587FC860F594869
2 changed files with 4 additions and 2 deletions

View file

@ -24,6 +24,7 @@ group = "com.jetpackduba"
version = projectVersion
val isLinuxAarch64 = (properties.getOrDefault("isLinuxAarch64", "false") as String).toBoolean()
val useCross = (properties.getOrDefault("useCross", "false") as String).toBoolean()
sourceSets.getByName("main") {
@ -220,7 +221,7 @@ fun generateKotlinFromUdl() {
fun buildRust() {
exec {
println("Build rs called")
val binary = if (currentOs() == OS.LINUX) {
val binary = if (currentOs() == OS.LINUX && useCross) {
"cross"
} else {
"cargo"

View file

@ -1,2 +1,3 @@
kotlin.code.style=official
isLinuxAarch64=false
useCross=false