Skip to content

Commit a2c265e

Browse files
committed
Try builds
1 parent f43bb6e commit a2c265e

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.github/workflows/KMMBridge-iOS-publish.yml .github/workflows/KMMBridge-Debug.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: KMMBridge iOS Publish
1+
name: KMMBridge-Debug
22
on:
33
workflow_dispatch:
44

55
permissions:
66
contents: write
7+
packages: write
78

89
jobs:
910
kmmbridgepublish:
@@ -26,6 +27,11 @@ jobs:
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 }}

.github/workflows/KMMBridge-Android-iOS-publish.yml .github/workflows/KMMBridge-Release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: KMMBridge Android and iOS Publish
1+
name: KMMBridge-Release
22
on:
33
workflow_dispatch:
44

allshared/build.gradle.kts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
2+
13
plugins {
24
alias(libs.plugins.kotlin.multiplatform)
35
alias(libs.plugins.kmmbridge)
@@ -28,6 +30,7 @@ kotlin {
2830

2931
kmmbridge {
3032
gitHubReleaseArtifacts()
33+
buildType.setAndFinalize(NativeBuildType.DEBUG)
3134
spm(swiftToolVersion = "5.8") {
3235
iOS { v("14") }
3336
}

0 commit comments

Comments
 (0)