Skip to content

Commit

Permalink
CI: try different Android test approach
Browse files Browse the repository at this point in the history
  • Loading branch information
nil4 committed Jan 7, 2025
1 parent e6d3828 commit 5da7b07
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,32 @@ jobs:
cd Samples/Beyond.NET.Sample.Native
./publish_${{ env.SCRIPT_SUFFIX }}
- name: run Android tests (macOS)
- name: build Android native (macOS)
if: "success() && matrix.env.OS == 'macOS'"
run: |
pushd Samples/Beyond.NET.Sample.Native
cd Samples/Beyond.NET.Sample.Native
./publish_android_arm64
popd
cd Samples/Beyond.NET.Sample.Android
./test-on-emulator.ps1
- name: run Android tests (macOS)
if: "success() && matrix.env.OS == 'macOS'"
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 31
arch: arm64-v8a
target: google_apis
disable-animations: true
force-avd-creation: false
emulator-boot-timeout: 120
emulator-options: -no-audio -no-boot-anim -no-window -no-snapshot-save -gpu off -camera-back none
working-directory: Samples/Beyond.NET.Sample.Android
script: ./gradlew connectedAndroidTest

#- name: run Android tests (macOS)
# if: "success() && matrix.env.OS == 'macOS'"
# run: |
# pushd Samples/Beyond.NET.Sample.Native
# ./publish_android_arm64
# popd
#
# cd Samples/Beyond.NET.Sample.Android
# ./test-on-emulator.ps1

0 comments on commit 5da7b07

Please sign in to comment.