android and kotlin release

This commit is contained in:
bojancrevar
2026-03-17 13:04:49 +01:00
parent f90d1c5d54
commit 1316b0aa07
+4 -12
View File
@@ -100,21 +100,17 @@ jobs:
uses: gradle/actions/wrapper-validation@v3
- name: Setup Gradle
if: github.event_name != 'workflow_dispatch'
uses: gradle/actions/setup-gradle@v3
- name: Download all artifacts
if: github.event_name != 'workflow_dispatch'
uses: actions/download-artifact@v4
with:
path: build/generated/resources
- name: Move artifacts
if: github.event_name != 'workflow_dispatch'
run: mv ../../build ./
- name: Generate Kotlin sources
if: github.event_name != 'workflow_dispatch'
run: |
cargo run --bin uniffi-bindgen -- generate \
--library build/generated/resources/darwin-x86-64/libzen_uniffi.dylib \
@@ -122,22 +118,18 @@ jobs:
--out-dir build/generated/kotlin
- name: Install uniffi-bindgen-java
if: github.event_name != 'workflow_dispatch'
run: cargo install uniffi-bindgen-java
- name: Generate Java sources
if: github.event_name != 'workflow_dispatch'
run: |
uniffi-bindgen-java generate \
--library build/generated/resources/darwin-x86-64/libzen_uniffi.dylib \
--out-dir build/generated/java
- name: Print directory tree
if: github.event_name != 'workflow_dispatch'
run: tree build
- name: Publish Maven Artifact
if: github.event_name != 'workflow_dispatch'
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
@@ -437,7 +429,7 @@ jobs:
--base "master"
build-android:
if: "!contains(github.event.head_commit.message, 'skip ci') && github.event_name != 'workflow_dispatch'"
if: "!contains(github.event.head_commit.message, 'skip ci') || github.event_name == 'workflow_dispatch'"
runs-on: ubuntu-latest
env:
OUTPUT_NAME: zen_uniffi
@@ -484,7 +476,7 @@ jobs:
prepare-android-bindings:
runs-on: ubuntu-latest
needs: [ build ]
if: "!contains(github.event.head_commit.message, 'skip ci') && github.event_name != 'workflow_dispatch'"
if: "!contains(github.event.head_commit.message, 'skip ci') || github.event_name == 'workflow_dispatch'"
defaults:
run:
@@ -522,7 +514,7 @@ jobs:
package-android-aar:
runs-on: ubuntu-latest
needs: [ build-android, prepare-android-bindings ]
if: "!contains(github.event.head_commit.message, 'skip ci') && github.event_name != 'workflow_dispatch'"
if: "!contains(github.event.head_commit.message, 'skip ci') || github.event_name == 'workflow_dispatch'"
defaults:
run:
working-directory: ${{ env.UNIFFI_DIRECTORY }}
@@ -620,7 +612,7 @@ jobs:
release-android:
runs-on: ubuntu-latest
needs: [ package-android-aar ]
if: "startsWith(github.event.head_commit.message, 'chore(release): publish uniffi') && github.event_name != 'workflow_dispatch'"
if: "startsWith(github.event.head_commit.message, 'chore(release): publish uniffi') || github.event_name == 'workflow_dispatch'"
defaults:
run:
working-directory: ${{ env.UNIFFI_DIRECTORY }}