Skip to content

Commit 83fbb93

Browse files
authored
Merge pull request #49 from touchlab/kpg/fix_publish
fix publishing for linux
2 parents f086c80 + e10eba7 commit 83fbb93

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
kotlin.code.style=official
22

33
GROUP=co.touchlab
4-
VERSION_NAME=1.0.4
4+
VERSION_NAME=1.0.5
55
KOTLIN_VERSION=1.5.0
66

77
kotlin.native.ignoreDisabledTargets=true

sqliter-driver/build.gradle.kts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ fun configInterop(target: org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTar
2929
}
3030

3131
kotlin {
32-
val knTargets = when {
33-
HostManager.hostIsMingw -> listOf(mingwX64("mingw"))
34-
HostManager.hostIsLinux -> listOf(linuxX64())
35-
else -> listOf(
32+
val knTargets = listOf(
3633
macosX64(),
3734
iosX64(),
3835
iosArm64(),
@@ -42,9 +39,10 @@ kotlin {
4239
watchosX86(),
4340
watchosX64(),
4441
tvosArm64(),
45-
tvosX64()
42+
tvosX64(),
43+
mingwX64("mingw"),
44+
linuxX64()
4645
)
47-
}
4846

4947
knTargets
5048
.forEach { target ->
@@ -98,5 +96,10 @@ kotlin {
9896
}
9997
}
10098

99+
if(!HostManager.hostIsLinux) {
100+
tasks.findByName("linuxX64Test")?.enabled = false
101+
tasks.findByName("linkDebugTestLinuxX64")?.enabled = false
102+
}
103+
101104
apply(from = "../gradle/gradle-mvn-mpp-push.gradle")
102105

0 commit comments

Comments
 (0)