Skip to content

Commit

Permalink
chore(ci): fix linux only runs
Browse files Browse the repository at this point in the history
  • Loading branch information
aallam committed Jul 20, 2024
1 parent 3f8bdbc commit fba4ba5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions openai-client/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.konan.target.HostManager

plugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
Expand Down Expand Up @@ -72,9 +74,11 @@ kotlin {
implementation(libs.ktor.client.curl)
}
}
val darwinTest by getting {
dependencies {
implementation(libs.ktor.client.darwin)
if (HostManager.hostIsMac) {
val darwinTest by getting {
dependencies {
implementation(libs.ktor.client.darwin)
}
}
}
}
Expand Down

0 comments on commit fba4ba5

Please sign in to comment.