Skip to content

Commit cf24ffa

Browse files
committed
ci(workflows): publish Darwin targets per module
- Update build steps to invoke kmmBridgePublish for each client and gateway module individually in release and debug workflows - Improve clarity and modularity of publication process
1 parent d6f3601 commit cf24ffa

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/KMMBridge-Debug.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,19 @@ jobs:
5454
tag_name: "dev-${{ steps.versionPropertyValue.outputs.propVal }}"
5555

5656
- name: Build and Publish
57-
run: ./gradlew kmmBridgePublish -PNATIVE_BUILD_TYPE=DEBUG -PGITHUB_ARTIFACT_RELEASE_ID=${{ steps.devrelease.outputs.id }} -PGITHUB_ARTIFACT_IDENTIFIER_NAME=${{ steps.trimcommit.outputs.short }} -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} --no-configuration-cache --no-daemon --info --stacktrace
57+
run: |
58+
./gradlew \
59+
:openai-client:openai-client-darwin:kmmBridgePublish \
60+
:anthropic-client:anthropic-client-darwin:kmmBridgePublish \
61+
:gemini-client:gemini-client-darwin:kmmBridgePublish \
62+
:ollama-client:ollama-client-darwin:kmmBridgePublish \
63+
:openai-gateway:openai-gateway-darwin:kmmBridgePublish \
64+
-PNATIVE_BUILD_TYPE=DEBUG \
65+
-PGITHUB_ARTIFACT_RELEASE_ID=${{ steps.devrelease.outputs.id }} \
66+
-PGITHUB_ARTIFACT_IDENTIFIER_NAME=${{ steps.trimcommit.outputs.short }} \
67+
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
68+
-PGITHUB_REPO=${{ github.repository }} \
69+
--no-configuration-cache --no-daemon --info --stacktrace
5870
env:
5971
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
6072

.github/workflows/KMMBridge-Release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,17 @@ jobs:
5050
tag_name: ${{ steps.versionPropertyValue.outputs.propVal }}
5151

5252
- name: Build and Publish
53-
run: ./gradlew kmmBridgePublish -PGITHUB_ARTIFACT_RELEASE_ID=${{ steps.devrelease.outputs.id }} -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} --no-configuration-cache --no-daemon --info --stacktrace
53+
run: |
54+
./gradlew \
55+
:openai-client:openai-client-darwin:kmmBridgePublish \
56+
:anthropic-client:anthropic-client-darwin:kmmBridgePublish \
57+
:gemini-client:gemini-client-darwin:kmmBridgePublish \
58+
:ollama-client:ollama-client-darwin:kmmBridgePublish \
59+
:openai-gateway:openai-gateway-darwin:kmmBridgePublish \
60+
-PGITHUB_ARTIFACT_RELEASE_ID=${{ steps.devrelease.outputs.id }} \
61+
-PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} \
62+
-PGITHUB_REPO=${{ github.repository }} \
63+
--no-configuration-cache --no-daemon --info --stacktrace
5464
env:
5565
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
5666

0 commit comments

Comments
 (0)