Skip to content

Commit 2e0714a

Browse files
committed
Update test_android.yml
1 parent e995136 commit 2e0714a

File tree

1 file changed

+35
-29
lines changed

1 file changed

+35
-29
lines changed

.github/workflows/test_android.yml

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ 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+
if: matrix.platform == 'android'
31+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
32+
with:
33+
distribution: temurin
34+
java-version: 17
35+
36+
- name: Set up NDK
37+
if: matrix.platform == 'android'
38+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # v1.5.0
39+
with:
40+
ndk-version: r28b
41+
link-to-sdk: true
42+
2943
- name: Export project
3044
shell: bash
3145
timeout-minutes: 5
@@ -34,35 +48,27 @@ jobs:
3448
SENTRY_TEST_INCLUDE: "res://test/suites/"
3549
run: |
3650
cp exports/export_presets.cfg project/export_presets.cfg
37-
${GODOT} --path project/ --headless --export-debug "Android CI" ${GITHUB_WORKSPACE}/exports/android.apk
51+
"$GODOT" --path project/ --headless --export-debug "Android CI" "${GITHUB_WORKSPACE}/exports/android.apk"
3852
3953
ls -lR exports/
4054
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/"
55+
- name: Run Android Tests
56+
uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b # [email protected]
57+
timeout-minutes: 30
58+
with:
59+
api-level: 30
60+
target: "google_apis"
61+
channel: "stable"
62+
force-avd-creation: true
63+
disable-animations: true
64+
disable-spellchecker: true
65+
emulator-options: >
66+
-no-window
67+
-no-snapshot-save
68+
-gpu swiftshader_indirect
69+
-noaudio
70+
-no-boot-anim
71+
-camera-back none
72+
-camera-front none
73+
arch: arm64-v8a
74+
script: ./scripts/run-android-tests.sh

0 commit comments

Comments
 (0)