File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1- name : KMMBridge iOS Publish
1+ name : KMMBridge-Debug
22on :
33 workflow_dispatch :
44
55permissions :
66 contents : write
7+ packages : write
78
89jobs :
910 kmmbridgepublish :
2627 id : output
2728 run : echo "${{ steps.versionPropertyValue.outputs.propVal }}"
2829
30+ - id : trimcommit
31+ uses : prompt/actions-commit-hash@v3
32+ with :
33+ commit : ${{ github.sha }}
34+
2935 - name : Touchlab Sample Sanity Check (Ignore this for your CI)
3036 uses : touchlab/sample-group-sanity-check@main
3137
@@ -46,13 +52,13 @@ jobs:
4652 key : ${{ runner.os }}-v4-${{ hashFiles('*.gradle.kts') }}
4753
4854 - name : Build Main
49- run : ./gradlew kmmBridgePublish -PENABLE_PUBLISHING=true -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} --no-daemon --info --stacktrace
55+ run : ./gradlew kmmBridgePublish -PLIBRARY_VERSION=${{ steps.versionPropertyValue.outputs.propVal }}-${{ steps.trimcommit.outputs.short }} - PENABLE_PUBLISHING=true -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} --no-daemon --info --stacktrace
5056 env :
5157 GRADLE_OPTS : -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
5258
5359 - uses : touchlab/ga-update-release-tag@v1
5460 id : update-release-tag
5561 with :
56- commitMessage : " KMP SPM package release for ${{ steps.versionPropertyValue.outputs.propVal }}"
57- tagMessage : " KMP release version ${{ steps.versionPropertyValue.outputs.propVal }}"
58- tagVersion : ${{ steps.versionPropertyValue.outputs.propVal }}
62+ commitMessage : " KMP SPM package release for ${{ steps.versionPropertyValue.outputs.propVal }}-${{ steps.trimcommit.outputs.short }} "
63+ tagMessage : " KMP release version ${{ steps.versionPropertyValue.outputs.propVal }}-${{ steps.trimcommit.outputs.short }} "
64+ tagVersion : ${{ steps.versionPropertyValue.outputs.propVal }}-${{ steps.trimcommit.outputs.short }}
Original file line number Diff line number Diff line change 1- name : KMMBridge Android and iOS Publish
1+ name : KMMBridge-Release
22on :
33 workflow_dispatch :
44
Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
2+
13plugins {
24 alias(libs.plugins.kotlin.multiplatform)
35 alias(libs.plugins.kmmbridge)
@@ -28,6 +30,7 @@ kotlin {
2830
2931kmmbridge {
3032 gitHubReleaseArtifacts()
33+ buildType.setAndFinalize(NativeBuildType .DEBUG )
3134 spm(swiftToolVersion = " 5.8" ) {
3235 iOS { v(" 14" ) }
3336 }
You can’t perform that action at this time.
0 commit comments