Skip to content

Commit 5da7b07

Browse files
committed
CI: try different Android test approach
1 parent e6d3828 commit 5da7b07

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/ci.yml

+25-5
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,32 @@ jobs:
7878
cd Samples/Beyond.NET.Sample.Native
7979
./publish_${{ env.SCRIPT_SUFFIX }}
8080
81-
- name: run Android tests (macOS)
81+
- name: build Android native (macOS)
8282
if: "success() && matrix.env.OS == 'macOS'"
8383
run: |
84-
pushd Samples/Beyond.NET.Sample.Native
84+
cd Samples/Beyond.NET.Sample.Native
8585
./publish_android_arm64
86-
popd
8786
88-
cd Samples/Beyond.NET.Sample.Android
89-
./test-on-emulator.ps1
87+
- name: run Android tests (macOS)
88+
if: "success() && matrix.env.OS == 'macOS'"
89+
uses: reactivecircus/android-emulator-runner@v2
90+
with:
91+
api-level: 31
92+
arch: arm64-v8a
93+
target: google_apis
94+
disable-animations: true
95+
force-avd-creation: false
96+
emulator-boot-timeout: 120
97+
emulator-options: -no-audio -no-boot-anim -no-window -no-snapshot-save -gpu off -camera-back none
98+
working-directory: Samples/Beyond.NET.Sample.Android
99+
script: ./gradlew connectedAndroidTest
100+
101+
#- name: run Android tests (macOS)
102+
# if: "success() && matrix.env.OS == 'macOS'"
103+
# run: |
104+
# pushd Samples/Beyond.NET.Sample.Native
105+
# ./publish_android_arm64
106+
# popd
107+
#
108+
# cd Samples/Beyond.NET.Sample.Android
109+
# ./test-on-emulator.ps1

0 commit comments

Comments
 (0)