Skip to content
This repository was archived by the owner on Jul 5, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/build-ga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@ jobs:
- name: Lint check
run: ./gradlew ktlintCheck

# - name: Build all targets
# run: ./gradlew assemble

- name: Build JVM targets
run: ./gradlew shadowJar
- name: Build all targets
run: ./gradlew assemble

- name: Run JVM tests
run: ./gradlew jvmTest

# - name: Run Mac/Native tests
# run: ./gradlew macNativeTest
- name: Run Mac/Native tests
run: ./gradlew macNativeTest

- name: Prepare for Publishing
run: ./gradlew prepareForPublish
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/build-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@ jobs:
- name: Lint check
run: ./gradlew ktlintCheck

# - name: Build all targets
# run: ./gradlew assemble

- name: Build JVM targets
run: ./gradlew shadowJar
- name: Build all targets
run: ./gradlew assemble

- name: Run JVM tests
run: ./gradlew jvmTest

# - name: Run Mac/Native tests
# run: ./gradlew macNativeTest
- name: Run Mac/Native tests
run: ./gradlew macNativeTest

- name: Prepare for Publishing
run: ./gradlew prepareForPublish
Expand Down
38 changes: 17 additions & 21 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import org.gradle.internal.impldep.org.joda.time.LocalDateTime
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinTargetContainerWithPresetFunctions
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTargetWithHostTests

plugins {
application
Expand Down Expand Up @@ -98,20 +97,20 @@ kotlin {
}

// used by the 'getting' delegate
// @Suppress("UNUSED_VARIABLE", "KotlinRedundantDiagnosticSuppress")
// val macNativeMain by getting {
// dependsOn(commonMain)
// dependencies {
// implementation("io.ktor:ktor-client-curl:2.3.+")
// implementation("app.cash.sqldelight:native-driver:2.+")
// }
// }
@Suppress("UNUSED_VARIABLE", "KotlinRedundantDiagnosticSuppress")
val macNativeMain by getting {
dependsOn(commonMain)
dependencies {
implementation("io.ktor:ktor-client-curl:2.3.+")
implementation("app.cash.sqldelight:native-driver:2.+")
}
}

// used by the 'getting' delegate
// @Suppress("UNUSED_VARIABLE", "KotlinRedundantDiagnosticSuppress")
// val macNativeTest by getting {
// dependsOn(commonTest)
// }
@Suppress("UNUSED_VARIABLE", "KotlinRedundantDiagnosticSuppress")
val macNativeTest by getting {
dependsOn(commonTest)
}

}

Expand Down Expand Up @@ -410,15 +409,12 @@ class Configurator(private val env: Env, private val output: Output) {
println("Configured Kotlin target '$name'")
}

@Suppress("USELESS_CAST", "UNUSED_PARAMETER")
fun configureNativeTarget(container: KotlinTargetContainerWithPresetFunctions): KotlinNativeTargetWithHostTests? =
fun configureNativeTarget(container: KotlinTargetContainerWithPresetFunctions) =
when (env.currentPlatform) {
// TODO – disabled temporarily until the build is fixed
Env.Platform.MAC -> null as? KotlinNativeTargetWithHostTests?
// when (env.currentArch) {
// Env.Arch.X86 -> container.macosX64(env.currentPlatform.targetName)
// Env.Arch.ARM -> container.macosArm64(env.currentPlatform.targetName)
// }
Env.Platform.MAC -> when (env.currentArch) {
Env.Arch.X86 -> container.macosX64(env.currentPlatform.targetName)
Env.Arch.ARM -> container.macosArm64(env.currentPlatform.targetName)
}

else -> null
}?.also { target ->
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ org.gradle.jvmargs=-Xmx4096m
# Project properties
config.group = xyz.marinkovic.milos
config.artifact = codestats
config.version = 0.9.0
config.version = 0.10.0
config.gitHubRepoOwner = milosmns
config.gitHubRepoName = code-stats