Skip to content

Commit

Permalink
Added more targets
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankoppier committed Sep 5, 2024
1 parent 9f0d358 commit 0d3b1b9
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 3 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on: workflow_dispatch

jobs:
release:
name: Release
permissions:
pull-requests: read
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: 'gradle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Staging
run: ./gradlew publish

- name: Publish to Maven Central
run: ./gradlew jreleaserFullRelease

- name: Publish to Gradle Plugin Portal
run: ./gradlew publishPlugins
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
**/*.hprof

#Kotlin
.kotlin
Expand Down
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref
gradle-plugin-publish = { id = "com.gradle.plugin-publish", version = "1.2.1" }
sonarqube = { id = "org.sonarqube", version = "5.1.0.4882" }
jreleaser = { id = "org.jreleaser", version = "1.13.1" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
android-library = { id = "com.android.library", version = "8.5.2" }
25 changes: 23 additions & 2 deletions mappie-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
@file:OptIn(ExperimentalWasmDsl::class)

import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl

plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.dokka)
alias(libs.plugins.android.library) apply false
id("maven-publish")
}

Expand All @@ -15,12 +18,30 @@ kotlin {
withSourcesJar(publish = true)
}

androidNativeX64()
androidNativeArm64()

iosArm64()
iosSimulatorArm64()
iosX64()

js {
browser()
binaries.library()
nodejs()
}

wasmJs {
browser()
nodejs()
}

mingwX64 { binaries { sharedLib { baseName = "libnative" } } }
mingwX64()

macosX64()
macosArm64()

linuxX64()
linuxArm64()
}

val dokkaHtml by tasks.dokkaHtml
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
google()
}
}

Expand Down

0 comments on commit 0d3b1b9

Please sign in to comment.