diff --git a/.github/workflows/java-publish.yml b/.github/workflows/java-publish.yml index 421f44d14d..5e1627ebe7 100644 --- a/.github/workflows/java-publish.yml +++ b/.github/workflows/java-publish.yml @@ -29,7 +29,7 @@ jobs: mv ../target/release/liblance_jni.dylib ./liblance_jni_darwin_aarch64.dylib - uses: actions/upload-artifact@v4 with: - name: liblance_jni_darwin_aarch64 + name: liblance_jni_darwin_aarch64.zip path: ./java/liblance_jni_darwin_aarch64.dylib retention-days: 1 if-no-files-found: error @@ -66,7 +66,7 @@ jobs: mv ../target/release/liblance_jni.so ./liblance_jni_linux_aarch64.so - uses: actions/upload-artifact@v4 with: - name: liblance_jni_linux_aarch64 + name: liblance_jni_linux_aarch64.zip path: ./java/liblance_jni_linux_aarch64.so retention-days: 1 if-no-files-found: error @@ -98,7 +98,9 @@ jobs: uses: actions/download-artifact@v4 - name: Copy native libs run: | - ls ../ ./ + unzip ../liblance_jni_linux_aarch64.zip + unzip ../liblanche_jni_dawin_aarch64.zip + ls ../ ./ cp ../liblance_jni_darwin_aarch64.dylib ./core/target/classes/nativelib/darwin-aarch64/liblance_jni.dylib cp ../liblance_jni_linux_aarch64.so ./core/target/classes/nativelib/linux-aarch64/liblance_jni.so - name: Build and publish with Java 8