diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0488d6..d5fa6a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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