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 }}