diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51cf1f96..1343765c 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,30 @@ 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: actions-rs/toolchain@v1 + 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]