From 6a6387094c6387a907b8d178076317c29e0a4227 Mon Sep 17 00:00:00 2001 From: oluiscabral Date: Fri, 1 Nov 2024 13:38:00 -0300 Subject: [PATCH] Updates `build.yml` --- .github/workflows/build.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96b278e..850eac4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,11 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install required global dependencies + run: | + sudo apt-get update + sudo apt-get install libssl-dev + - name: Install Rust uses: dtolnay/rust-toolchain@stable with: @@ -55,13 +60,7 @@ jobs: run: gradle test working-directory: ./java - - name: Publish Java release - run: gradle publish - working-directory: ./java - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - # Release fs-storage NDK binaries + # Upload fs-storage JNI libs - name: Install cargo-ndk run: cargo install cargo-ndk @@ -77,8 +76,15 @@ jobs: - name: Upload fs-storage uses: actions/upload-artifact@v4 with: - name: fs-storage + name: fs-storage-jni-libs path: ./target/release/fs-storage/jniLibs + # --- + + - name: Publish Java release + run: gradle publish + working-directory: ./java + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} windows: name: Test on Windows