Skip to content
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
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:

jobs:
gradle_check:
name: Gradle check
name: Gradle check (JVM, Linux, JS)
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -27,3 +27,20 @@ jobs:

- name: Run checks
run: ./gradlew -Dorg.gradle.jvmargs=-Xmx4096m check

macos_check:
name: Gradle check (iOS)
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 21
cache: 'gradle'

- name: Run checks
run: ./gradlew -Dorg.gradle.jvmargs=-Xmx4096m check
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
maven_publish:
name: Release build and publish
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ktor-client-encoding = { module = "io.ktor:ktor-client-encoding", version.ref =
ktor-client-engine-java = { module = "io.ktor:ktor-client-java", version.ref = "ktor" }
ktor-client-engine-curl = { module = "io.ktor:ktor-client-curl", version.ref = "ktor" }
ktor-client-engine-js = { module = "io.ktor:ktor-client-js", version.ref = "ktor" }
ktor-client-engine-darwin = { module = "io.ktor:ktor-client-darwin", version.ref = "ktor" }
ktor-client-engine-android = { module = "io.ktor:ktor-client-android", version.ref = "ktor" }

[plugins]
Expand Down
11 changes: 10 additions & 1 deletion jecnaapi-canteen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ plugins {
kotlin {
jvm()
linuxX64()
iosX64()
iosArm64()
iosSimulatorArm64()
js {
browser {
testTask { enabled = false }
Expand All @@ -21,6 +24,7 @@ kotlin {
testTask { enabled = false }
}
}
applyDefaultHierarchyTemplate()
androidLibrary {
namespace = "io.github.tomhula.jecnaapi.canteen"
compileSdk = 36
Expand All @@ -35,9 +39,14 @@ kotlin {
jvmMain.dependencies {
runtimeOnly(libs.ktor.client.engine.java)
}
nativeMain.dependencies {
val linuxX64Main by getting
linuxX64Main.dependencies {
runtimeOnly(libs.ktor.client.engine.curl)
}
val iosMain by getting
iosMain.dependencies {
runtimeOnly(libs.ktor.client.engine.darwin)
}
jsMain.dependencies {
runtimeOnly(libs.ktor.client.engine.js)
}
Expand Down
11 changes: 10 additions & 1 deletion jecnaapi-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ plugins {
kotlin {
jvm()
linuxX64()
iosX64()
iosArm64()
iosSimulatorArm64()
js {
browser {
testTask { enabled = false }
Expand All @@ -23,6 +26,7 @@ kotlin {
testTask { enabled = false }
}
}
applyDefaultHierarchyTemplate()
androidLibrary {
namespace = "io.github.tomhula.jecnaapi.core"
compileSdk = 36
Expand All @@ -38,9 +42,14 @@ kotlin {
jvmMain.dependencies {
runtimeOnly(libs.ktor.client.engine.java)
}
nativeMain.dependencies {
val linuxX64Main by getting
linuxX64Main.dependencies {
runtimeOnly(libs.ktor.client.engine.curl)
}
val iosMain by getting
iosMain.dependencies {
runtimeOnly(libs.ktor.client.engine.darwin)
}
jsMain.dependencies {
runtimeOnly(libs.ktor.client.engine.js)
}
Expand Down
11 changes: 10 additions & 1 deletion jecnaapi-jecna/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ plugins {
kotlin {
jvm()
linuxX64()
iosX64()
iosArm64()
iosSimulatorArm64()
js {
browser {
testTask { enabled = false }
Expand All @@ -23,6 +26,7 @@ kotlin {
testTask { enabled = false }
}
}
applyDefaultHierarchyTemplate()
androidLibrary {
namespace = "io.github.tomhula.jecnaapi.jecna"
compileSdk = 36
Expand All @@ -40,9 +44,14 @@ kotlin {
jvmMain.dependencies {
runtimeOnly(libs.ktor.client.engine.java)
}
nativeMain.dependencies {
val linuxX64Main by getting
linuxX64Main.dependencies {
runtimeOnly(libs.ktor.client.engine.curl)
}
val iosMain by getting
iosMain.dependencies {
runtimeOnly(libs.ktor.client.engine.darwin)
}
jsMain.dependencies {
runtimeOnly(libs.ktor.client.engine.js)
}
Expand Down