mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-21 23:48:00 +00:00
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Install dependencies for Android build
|
|
description: Contains all dependencies for Android build
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: ☕️ Install Java
|
|
uses: actions/setup-java@v4.0.0
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
cache: 'gradle'
|
|
|
|
- name: Setup Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
with:
|
|
cmdline-tools-version: 12266719
|
|
|
|
- name: Install NDK
|
|
run: |
|
|
SDKMANAGER=$(find ${ANDROID_SDK_ROOT}/cmdline-tools -name sdkmanager -type f 2>/dev/null | head -1)
|
|
echo "y" | sudo ${SDKMANAGER} --install "ndk;26.1.10909125" --sdk_root=${ANDROID_SDK_ROOT}
|
|
shell: bash
|
|
|
|
- name: Set ndk.dir in local.properties
|
|
run: echo "ndk.dir=${ANDROID_SDK_ROOT}/ndk/26.1.10909125" >> local.properties
|
|
shell: bash
|
|
|
|
- name: 🦀 Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
|
|
- name: Add targets
|
|
run: |
|
|
rustup target add armv7-linux-androideabi
|
|
rustup target add i686-linux-android
|
|
rustup target add x86_64-linux-android
|
|
rustup target add aarch64-linux-android
|
|
shell: bash |