Skip to content

Final touches on AAR build and release workflow #8

Final touches on AAR build and release workflow

Final touches on AAR build and release workflow #8

Workflow file for this run

name: Release
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Set up Cargo Cache
uses: Swatinem/rust-cache@v2
with:
save-if: false
- name: Run tests
run: cargo test --workspace --verbose
- name: Build Release
run: cargo build --verbose --release
- name: Install JDK
uses: actions/[email protected]
with:
distribution: "temurin"
java-version: "22"
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Set up Android NDK
uses: nttld/setup-ndk@v1
with:
link-to-sdk: true
ndk-version: r28-beta1
- name: Java tests
run: gradle test
working-directory: ./java
- name: Publish Java release
run: gradle publish
working-directory: ./java
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}