Generate AAR with QR-to-receive #33
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ARK Drop Android Bindings Release | |
| on: | |
| push: | |
| paths: | |
| - "drop-core/entities/**" | |
| - "drop-core/exchanges/**" | |
| - "drop-core/uniffi/**" | |
| - ".github/workflows/arkdrop-bindings-release.yml" | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| defaults: | |
| run: | |
| working-directory: ./drop-core/uniffi/bindings/android | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android | |
| - name: Install NDK | |
| run: cargo install cargo-ndk | |
| - name: Install JDK | |
| uses: actions/[email protected] | |
| with: | |
| distribution: "temurin" | |
| java-version: "22" | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - 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: r29-beta2 | |
| - name: Publish Bindings Android | |
| run: ./gradlew publish -Pandroid.useAndroidX=true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| RELEASE_VERSION: ${{ github.run_id }} |