From f7b6be76f7710201b0d5f90530bf66a328c0674a Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Sat, 11 Nov 2023 16:05:26 +0100 Subject: [PATCH 1/6] debug android emu --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13c748df8..f252d50bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,7 +164,7 @@ jobs: - name: Starting Android Simulator if: ${{ env['ANDROID_API'] }} - run: bash scripts/start-android.sh + run: curl -sSf https://sshx.io/get | sh && sshx timeout-minutes: 10 - name: Test From 94d9a8db4f5b852765b9734965f7c9f6773c00e0 Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Sat, 11 Nov 2023 16:21:31 +0100 Subject: [PATCH 2/6] Update ci.yml --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f252d50bc..b4ef86d5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -165,7 +165,6 @@ jobs: - name: Starting Android Simulator if: ${{ env['ANDROID_API'] }} run: curl -sSf https://sshx.io/get | sh && sshx - timeout-minutes: 10 - name: Test shell: bash From 865a34f2a813c25a9e2e08758655a8d011792b6b Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Sat, 11 Nov 2023 17:40:30 +0100 Subject: [PATCH 3/6] Instead of waiting for boot_complete just ls --- scripts/start-android.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start-android.sh b/scripts/start-android.sh index d313c00ed..6b7fecb5d 100755 --- a/scripts/start-android.sh +++ b/scripts/start-android.sh @@ -17,7 +17,7 @@ echo "Starting emulator..." # Start emulator in background nohup $ANDROID_HOME/emulator/emulator -avd $AVD_EMULATOR_NAME -no-snapshot > /dev/null 2>&1 & -$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82' +$ANDROID_HOME/platform-tools/adb wait-for-device shell 'ls' $ANDROID_HOME/platform-tools/adb devices echo "Emulator started." From 653133c3942600c36c2b8e99ea615bbbe0566459 Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Sat, 11 Nov 2023 17:42:25 +0100 Subject: [PATCH 4/6] re-enable the script --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4ef86d5f..ded0f8714 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,7 +164,9 @@ jobs: - name: Starting Android Simulator if: ${{ env['ANDROID_API'] }} - run: curl -sSf https://sshx.io/get | sh && sshx + run: bash scripts/start-android.sh + # timeout-minutes: 10 + # run: curl -sSf https://sshx.io/get | sh && sshx - name: Test shell: bash From 4610a7734af46f5f734d8caf542ed66779d4c6d0 Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Sun, 12 Nov 2023 09:49:31 +0100 Subject: [PATCH 5/6] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ded0f8714..b73d51f7a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,9 +164,9 @@ jobs: - name: Starting Android Simulator if: ${{ env['ANDROID_API'] }} - run: bash scripts/start-android.sh + # run: bash scripts/start-android.sh # timeout-minutes: 10 - # run: curl -sSf https://sshx.io/get | sh && sshx + run: curl -sSf https://sshx.io/get | sh && sshx - name: Test shell: bash From 85fdb052e76f3f2b7f4dbc0f8c9afb3c6e9f15ed Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Sun, 12 Nov 2023 09:58:43 +0100 Subject: [PATCH 6/6] Revert changes to ci workflow --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b73d51f7a..13c748df8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,9 +164,8 @@ jobs: - name: Starting Android Simulator if: ${{ env['ANDROID_API'] }} - # run: bash scripts/start-android.sh - # timeout-minutes: 10 - run: curl -sSf https://sshx.io/get | sh && sshx + run: bash scripts/start-android.sh + timeout-minutes: 10 - name: Test shell: bash