Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
max-kammerer committed Oct 7, 2023
1 parent afb838d commit b392479
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [[16, x86, X86], [21, x86, X86], [28, x86_64, X86_64]]
# , [arm64-v8a, Arm64]
arch: [[16, x86], [21, x86], [28, x86_64]]
steps:
- name: checkout
uses: actions/checkout@v3
Expand All @@ -74,33 +73,9 @@ jobs:
java-version: 11
distribution: corretto

- name: Gradle cache
uses: gradle/gradle-build-action@v2

# - name: AVD cache
# uses: actions/cache@v3
# id: avd-cache
# with:
# path: |
# ~/.android/avd/*
# ~/.android/adb*
# key: avd-${{ matrix.arch[0] }}-${{ matrix.arch[1] }}

- name: Prepare thirdparty
run: bash ./gradlew -b thirdparty_build.gradle downloadAndPatchDjvu downloadAndMakeMupdf

# - name: create AVD and generate snapshot for caching
# if: steps.avd-cache.outputs.cache-hit != 'true'
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ matrix.arch[0] }}
# arch: ${{ matrix.arch[1] }}
# force-avd-creation: false
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: false
# sdcard-path-or-size: 900M
# script: echo "Generated AVD snapshot for caching."

- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
Expand All @@ -110,10 +85,10 @@ jobs:
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
sdcard-path-or-size: 900M
script: ./gradlew connected${{ matrix.arch[2] }}DebugAndroidTest -Porion.CIBuild=true
script: ./gradlew connectedDebugAndroidTest -Porion.CIBuild=true

- name: Test Summary
uses: test-summary/action@v2
with:
paths: orion-viewer/build/outputs/androidTest-results/connected/flavors/${{ matrix.arch[1] }}/TEST-*.xml
paths: orion-viewer/build/outputs/androidTest-results/connected/TEST-*.xml
if: always()

0 comments on commit b392479

Please sign in to comment.