Skip to content

Commit 4deea8d

Browse files
authored
Merge pull request #111 from touchlab/hfhbd-main
Hfhbd main
2 parents 7d8009f + 38ef620 commit 4deea8d

File tree

9 files changed

+30
-45
lines changed

9 files changed

+30
-45
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,5 @@ jobs:
5555
5656
- name: Build
5757
run: ./gradlew build --no-daemon --stacktrace
58-
59-
- name: Build Old Memory Model
60-
run: ./gradlew build --no-daemon --stacktrace -Pkotlin.native.binary.memoryModel=experimental
6158
env:
6259
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"

.github/workflows/deploy.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,9 @@ jobs:
4444
shell: bash
4545
run: |
4646
echo "c:\msys64\mingw64\bin" >> $GITHUB_PATH
47-
- name: Publish Mac Artifacts
47+
- name: Publish
4848
if: matrix.os == 'macOS-latest'
49-
run: ./gradlew publishMac --no-daemon --stacktrace
50-
env:
51-
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
52-
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
53-
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
54-
- name: Publish Windows Artifacts
55-
if: matrix.os == 'windows-latest'
56-
run: ./gradlew publishWindows --no-daemon --stacktrace
57-
env:
58-
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
59-
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
60-
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
61-
- name: Publish Linux Artifacts
62-
if: matrix.os == 'ubuntu-18.04'
63-
run: ./gradlew publishLinux --no-daemon --stacktrace
49+
run: ./gradlew publish --no-daemon --stacktrace
6450
env:
6551
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
6652
ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}

build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +0,0 @@
1-
allprojects {
2-
repositories {
3-
mavenLocal()
4-
mavenCentral()
5-
google()
6-
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev")
7-
}
8-
}

settings.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ pluginManagement {
99
}
1010
}
1111

12+
dependencyResolutionManagement {
13+
repositories {
14+
mavenLocal()
15+
mavenCentral()
16+
google()
17+
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev")
18+
}
19+
}

sqliter-driver/build.gradle.kts

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ fun configInterop(target: org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTar
2323
"-linker-options",
2424
"-lsqlite3 -L/usr/lib/x86_64-linux-gnu -L/usr/lib"
2525
)
26+
2627
HostManager.hostIsMingw -> listOf("-linker-options", "-lsqlite3 -Lc:\\msys64\\mingw64\\lib")
2728
else -> listOf("-linker-options", "-lsqlite3")
2829
}
@@ -46,6 +47,7 @@ kotlin {
4647
watchosDeviceArm64(),
4748
mingwX64(),
4849
linuxX64(),
50+
linuxArm64(),
4951
)
5052

5153
knTargets
@@ -63,7 +65,6 @@ kotlin {
6365
}
6466
commonMain {
6567
dependencies {
66-
implementation("org.jetbrains.kotlin:kotlin-stdlib-common")
6768
}
6869
}
6970
commonTest {
@@ -78,10 +79,16 @@ kotlin {
7879
val appleMain = sourceSets.maybeCreate("appleMain").apply {
7980
dependsOn(nativeCommonMain)
8081
}
81-
val linuxMain = sourceSets.maybeCreate("linuxX64Main").apply {
82+
val linuxMain = sourceSets.maybeCreate("linuxMain").apply {
8283
dependsOn(nativeCommonMain)
8384
}
84-
85+
val linuxX64Main = sourceSets.maybeCreate("linuxX64Main").apply {
86+
dependsOn(linuxMain)
87+
}
88+
val linuxArm64Main = sourceSets.maybeCreate("linuxArm64Main").apply {
89+
dependsOn(linuxMain)
90+
}
91+
8592
val mingwMain = sourceSets.maybeCreate("mingwMain").apply {
8693
dependsOn(nativeCommonMain)
8794
}
@@ -96,9 +103,11 @@ kotlin {
96103
target.compilations.getByName("main").defaultSourceSet.dependsOn(mingwMain)
97104
target.compilations.getByName("test").defaultSourceSet.dependsOn(nativeCommonTest)
98105
}
106+
99107
target.name.startsWith("linux") -> {
100108
target.compilations.getByName("test").defaultSourceSet.dependsOn(nativeCommonTest)
101109
}
110+
102111
else -> {
103112
target.compilations.getByName("main").defaultSourceSet.dependsOn(appleMain)
104113
target.compilations.getByName("test").defaultSourceSet.dependsOn(nativeCommonTest)
@@ -112,20 +121,13 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile> {
112121
kotlinOptions.freeCompilerArgs += "-Xexpect-actual-classes"
113122
}
114123

115-
if(!HostManager.hostIsLinux) {
116-
tasks.findByName("linuxX64Test")?.enabled = false
117-
tasks.findByName("linkDebugTestLinuxX64")?.enabled = false
118-
tasks.findByName("publishLinuxX64PublicationToMavenRepository")?.enabled = false
119-
}
120-
121-
if(!HostManager.hostIsMingw) {
122-
tasks.findByName("mingwX64Test")?.enabled = false
123-
tasks.findByName("linkDebugTestMingwX64")?.enabled = false
124-
tasks.findByName("publishMingwX64PublicationToMavenRepository")?.enabled = false
125-
}
124+
listOf(
125+
"linuxX64Test",
126+
"linuxArm64Test",
127+
"linkDebugTestLinuxX64",
128+
"linkDebugTestLinuxArm64",
129+
"mingwX64Test",
130+
"linkDebugTestMingwX64",
131+
).forEach { tasks.findByName(it)?.enabled = false }
126132

127133
apply(from = "../gradle/gradle-mvn-mpp-push.gradle")
128-
129-
tasks.register("publishMac"){
130-
setDependsOn(tasks.filter { t -> t.name.startsWith("publish") && t.name.endsWith("ToMavenRepository") && !t.name.contains("Linux") }.map { it.name })
131-
}

0 commit comments

Comments
 (0)