From 6c731ca92c9e975ae11cf6b585b4ba239b39a8f2 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Tue, 25 Jun 2024 23:25:29 -0700 Subject: [PATCH] fix up the logic --- .github/workflows/release-kotlin-bindings.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-kotlin-bindings.yml b/.github/workflows/release-kotlin-bindings.yml index a945c3c84..bc6c75c83 100644 --- a/.github/workflows/release-kotlin-bindings.yml +++ b/.github/workflows/release-kotlin-bindings.yml @@ -69,20 +69,10 @@ jobs: retention-days: 1 - name: Prepare JNI libs + working-directory: bindings_ffi run: | - LIBRARY_NAME="libxmtpv3" - TARGET_NAME="libuniffi_xmtpv3" - cd bindings_ffi - rm -rf jniLibs/ - mkdir -p jniLibs/armeabi-v7a/ && \ - cp target/armv7-linux-androideabi/release/$LIBRARY_NAME.so jniLibs/armeabi-v7a/$TARGET_NAME.so && \ - mkdir -p jniLibs/x86/ && \ - cp target/i686-linux-android/release/$LIBRARY_NAME.so jniLibs/x86/$TARGET_NAME.so && \ - mkdir -p jniLibs/x86_64/ && \ - cp target/x86_64-linux-android/release/$LIBRARY_NAME.so jniLibs/x86_64/$TARGET_NAME.so && \ - mkdir -p jniLibs/arm64-v8a/ && \ - cp target/aarch64-linux-android/release/$LIBRARY_NAME.so jniLibs/arm64-v8a/$TARGET_NAME.so - + mkdir -p jniLibs/${{ matrix.output_target }}/ && \ + cp target/${{ matrix.target }}/release/libxmtpv3.so jniLibs/${{ matrix.output_target }}/libuniffi_xmtpv3.so && \ package-kotlin: needs: [build-linux]