Skip to content

Commit 4f6245b

Browse files
committed
Update test_android.yml
1 parent e995136 commit 4f6245b

File tree

1 file changed

+33
-29
lines changed

1 file changed

+33
-29
lines changed

.github/workflows/test_android.yml

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ jobs:
2626
GODOT_VERSION: 4.5.1-stable
2727
run: ./scripts/deploy-android-template.sh $GODOT_VERSION
2828

29+
- name: Set up Java 17
30+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
31+
with:
32+
distribution: temurin
33+
java-version: 17
34+
35+
- name: Set up NDK
36+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # v1.5.0
37+
with:
38+
ndk-version: r28b
39+
link-to-sdk: true
40+
2941
- name: Export project
3042
shell: bash
3143
timeout-minutes: 5
@@ -34,35 +46,27 @@ jobs:
3446
SENTRY_TEST_INCLUDE: "res://test/suites/"
3547
run: |
3648
cp exports/export_presets.cfg project/export_presets.cfg
37-
${GODOT} --path project/ --headless --export-debug "Android CI" ${GITHUB_WORKSPACE}/exports/android.apk
49+
"$GODOT" --path project/ --headless --export-debug "Android CI" "${GITHUB_WORKSPACE}/exports/android.apk"
3850
3951
ls -lR exports/
4052
41-
# - name: Run Android Tests
42-
# uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b # [email protected]
43-
# timeout-minutes: 30
44-
# with:
45-
# api-level: 30
46-
# target: "google_apis"
47-
# channel: "stable"
48-
# force-avd-creation: true
49-
# disable-animations: true
50-
# disable-spellchecker: true
51-
# emulator-options: >
52-
# -no-window
53-
# -no-snapshot-save
54-
# -gpu swiftshader_indirect
55-
# -noaudio
56-
# -no-boot-anim
57-
# -camera-back none
58-
# -camera-front none
59-
# -timezone US/Pacific
60-
# arch: x86_64
61-
# script: |
62-
# adb wait-for-device
63-
# adb shell input keyevent 82
64-
# adb devices -l
65-
# adb install exports/android.apk
66-
# adb shell am start -n io.sentry.godot.project/com.godot.game.GodotApp \
67-
# --es env SENTRY_TEST=1 \
68-
# --es env SENTRY_TEST_INCLUDE="res://test/suites/"
53+
- name: Run Android Tests
54+
uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b # [email protected]
55+
timeout-minutes: 30
56+
with:
57+
api-level: 30
58+
target: "google_apis"
59+
channel: "stable"
60+
force-avd-creation: true
61+
disable-animations: true
62+
disable-spellchecker: true
63+
emulator-options: >
64+
-no-window
65+
-no-snapshot-save
66+
-gpu swiftshader_indirect
67+
-noaudio
68+
-no-boot-anim
69+
-camera-back none
70+
-camera-front none
71+
arch: arm64-v8a
72+
script: ./scripts/run-android-tests.sh

0 commit comments

Comments
 (0)