From df894e44c4aaae58ab98a972eaa85c65fe7fe0f5 Mon Sep 17 00:00:00 2001 From: Darko Kulic Date: Wed, 6 Dec 2023 13:04:17 +0100 Subject: [PATCH] Modify build.yml Signed-off-by: Darko Kulic --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51cf1f96..47be8420 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,9 +10,11 @@ concurrency: on: push: - branches: [main] + branches: + - '**' pull_request: - branches: [main] + branches: + - '**' release: types: [created] workflow_dispatch: @@ -390,6 +392,31 @@ jobs: name: library-${{ matrix.target }} path: target/${{ matrix.target }}/release/libaries_askar.a + build-jvm: + name: Build library (JVM) + needs: [checks] + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ env.RUST_VERSION }} + + - name: Cache cargo resources + uses: Swatinem/rust-cache@v2 + with: + shared-key: deps + save-if: false + + -name: Publish jvm kotlin + working-directory: wrappers/kotlin + run: | + ./gradlew publishAllPublicationsToGithubRepository + build-android: name: Build library (Android) needs: [checks]