File tree Expand file tree Collapse file tree
.github/workflows/scripts/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ EMULATOR_SPEC="system-images;android-${ANDROID_API};default;${ANDROID_EMULATOR_A
2323EMULATOR_NAME=" swiftemu"
2424ANDROID_PROFILE=" Nexus 10"
2525ANDROID_EMULATOR_LAUNCH_TIMEOUT=300
26- # TODO: require that this be set by an argument
27- ANDROID_NDK_HOME=" ${ANDROID_NDK_HOME:- ${ANDROID_HOME} } "
2826
2927install_package () {
3028 # Detect package manager
@@ -55,8 +53,8 @@ log "Installing KVM"
5553# install_package qemu-kvm || install_package kvm || install_package @virt
5654# https://help.ubuntu.com/community/KVM/Installation
5755install_package qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
58- sudo adduser ` id -un` libvirt || true
59- sudo adduser ` id -un` kvm || true
56+ sudo adduser " $( id -un) " libvirt || true
57+ sudo adduser " $( id -un) " kvm || true
6058virsh list --all || true
6159ls -la /var/run/libvirt/libvirt-sock || true
6260ls -l /dev/kvm || true
@@ -69,6 +67,9 @@ log "Installing Android cmdline-tools"
6967mkdir ~ /android-sdk
7068pushd ~ /android-sdk
7169export ANDROID_HOME=${PWD}
70+ # TODO: require that this be set by an argument
71+ export ANDROID_NDK_HOME=" ${ANDROID_NDK_HOME:- ${ANDROID_HOME} } "
72+
7273curl --connect-timeout 30 --retry 3 --retry-delay 2 --retry-max-time 60 -fsSL -o commandlinetools.zip https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip
7374unzip commandlinetools.zip
7475mv cmdline-tools latest
You can’t perform that action at this time.
0 commit comments