Skip to content

Commit

Permalink
macos
Browse files Browse the repository at this point in the history
  • Loading branch information
max-kammerer committed Sep 29, 2023
1 parent 67f2cfa commit 767c7e9
Showing 1 changed file with 61 additions and 1 deletion.
62 changes: 61 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
name: orion-viewer-${{steps.read_version_property.outputs.value}}-${{github.run_number}}-x86_64-debug.apk
path: orion-viewer/build/outputs/apk/x86_64/debug/*.apk

test:
test-x86:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -117,3 +117,63 @@ jobs:
with:
paths: orion-viewer/build/outputs/androidTest-results/connected/flavors/{{ matrix.arch[1] }}/TEST-*.xml
if: always()


test-arm:
runs-on: macos-latest
strategy:
matrix:
arch: [[21, arm64-v8a, Arm64], [28, arm64-v8a, Arm64]]
steps:
- name: checkout
uses: actions/checkout@v3

- name: set up JDK 11
uses: actions/setup-java@v3
with:
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:
api-level: ${{ matrix.arch[0] }}
arch: ${{ matrix.arch[1] }}
force-avd-creation: false
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

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

0 comments on commit 767c7e9

Please sign in to comment.