From 19805e4d4d3bb2a0d7f1a3e6c33a40a605400d0b Mon Sep 17 00:00:00 2001 From: randogoth Date: Wed, 14 Oct 2026 09:24:18 +0300 Subject: [PATCH] fix: build Rust native libs in CI (jniLibs is gitignored) --- .forgejo/workflows/release.yml | 7 +++++++ .github/workflows/release.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index ababfeb..389194f 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -26,6 +26,13 @@ jobs: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > android/app/kirakira-release.jks echo "KEYSTORE_PATH=$GITHUB_WORKSPACE/android/app/kirakira-release.jks" >> $GITHUB_ENV + # jniLibs/ is gitignored, so a fresh clone has no Rust .so files. Without + # this the APK builds fine and then crashes on the first FFI call. + - name: Build Rust native libraries + run: | + env -u GITHUB_TOKEN -u GH_TOKEN -u JAVA_HOME \ + devbox run build-native-android + - name: Build release APK env: STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ababfeb..389194f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,13 @@ jobs: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > android/app/kirakira-release.jks echo "KEYSTORE_PATH=$GITHUB_WORKSPACE/android/app/kirakira-release.jks" >> $GITHUB_ENV + # jniLibs/ is gitignored, so a fresh clone has no Rust .so files. Without + # this the APK builds fine and then crashes on the first FFI call. + - name: Build Rust native libraries + run: | + env -u GITHUB_TOKEN -u GH_TOKEN -u JAVA_HOME \ + devbox run build-native-android + - name: Build release APK env: STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}