diff --git a/.github/workflows/maestro.yml b/.github/workflows/maestro.yml index 330c3b0e1..28c73e955 100644 --- a/.github/workflows/maestro.yml +++ b/.github/workflows/maestro.yml @@ -43,7 +43,7 @@ jobs: curl --compressed --location --output tools.zip https://github.com/lzhiyong/android-sdk-tools/releases/download/34.0.3/android-sdk-tools-static-aarch64.zip unzip -d tools -n -q tools.zip rm -f tools.zip - cp tools/platform-tools/adb /path/to/android-sdk/platform-tools/adb + cp tools/platform-tools/adb $ANDROID_HOME/platform-tools/adb rm -fr tools shell: bash @@ -51,13 +51,13 @@ jobs: - name: Install Emulator run: | curl --compressed --location --output emulator.zip $(curl --location --silent https://ci.android.com/builds/submitted/11162281/emulator-linux_aarch64/latest/sdk-repo-linux_aarch64-emulator-11162281.zip | grep -o 'https://storage[^"]*' | sed 's/\\u0026/\&/g') - unzip -d /path/to/android-sdk -n -q emulator.zip + unzip -d $ANDROID_HOME -n -q emulator.zip rm -f emulator.zip - cp /path/to/android-sdk/platform-tools/package.xml /path/to/android-sdk/emulator/package.xml + cp $ANDROID_HOME/platform-tools/package.xml $ANDROID_HOME/emulator/package.xml sed -i \ -e 's|path="[a-zA-Z-]*"|path="emulator"|g' \ -e 's|Android .*<\/display-name>|Android Emulator<\/display-name>|g' \ - /path/to/android-sdk/emulator/package.xml + $ANDROID_HOME/emulator/package.xml echo 'Vulkan = off\nGLDirectMem = on' >> ~/.android/advancedFeatures.ini shell: bash