Skip to content

Commit

Permalink
Creates jniLibs.zip to package all JNI libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
oluiscabral committed Nov 30, 2024
1 parent 19a4ec6 commit 4ae1569
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
with:
targets: aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y zip
- name: Set up Cargo Cache
uses: Swatinem/rust-cache@v2
with:
Expand Down Expand Up @@ -48,11 +53,14 @@ jobs:
- name: Build fs-storage JNI libs
run: cargo ndk -o ./target/release/fs-storage/jniLibs --target aarch64-linux-android --target armv7-linux-androideabi --target i686-linux-android --target x86_64-linux-android build -p fs-storage --release

- name: Create JNI libs release
- name: Create JNI Libraries ZIP
run: zip jniLibs.zip ./target/release/fs-storage/jniLibs

- name: Release JNI Libraries ZIP
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "./target/release/fs-storage/jniLibs/**"
artifacts: "jniLibs.zip"

- name: Publish Java release
run: gradle publish
Expand Down

0 comments on commit 4ae1569

Please sign in to comment.