Files
firezone/.github/actions/setup-android/action.yml
Thomas Eizinger a59f7ee2e2 chore: install JDK via .tool-versions (#10663)
For working on the Android app, we need an installation of the JDK.
Currently, that is being installed separately in CI. We already have
`.tool-versions` which is designed to take care of this so we add
OpenJDK 17 to the list of required tools and remove the dedicated CI
step.
2025-10-21 03:13:03 +00:00

32 lines
1.2 KiB
YAML

# From https://tauri.app/v1/guides/getting-started/prerequisites
name: "Setup Android"
description: "Sets up the dependencies for building our Android app"
inputs:
sccache_azure_connection_string:
description: "Azure connection string for sccache"
runs:
using: "composite"
steps:
- uses: ./.github/actions/setup-rust
with:
targets: armv7-linux-androideabi aarch64-linux-android x86_64-linux-android i686-linux-android
sccache_azure_connection_string: ${{ inputs.sccache_azure_connection_string }}
- uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
- uses: android-actions/setup-android@9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407 # v3.2.2
with:
# By default tools and platform-tools are installed, which we don't use currently
# These consume lots of disk space
packages: ""
- name: Install NDK
run: sdkmanager "ndk;28.1.13356709" # Must match `kotlin/android/app/build.gradle.kts`
shell: bash
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
- run: touch local.properties
shell: bash