Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
linsang21 committed Sep 6, 2024
1 parent 0cff173 commit 7e8e6bc
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Modify build.gradle file to build for x86_64
- name: Add x86_64 in gradle build
run: |
sed -i '' "s/abiFilters 'armeabi-v7a', 'arm64-v8a'/abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64'/" $GITHUB_WORKSPACE/amazon-chime-sdk/build.gradle
- uses: actions/checkout@v4

# Download amazon-chime-sdk-media binary from AWS S3
- name: Get Media binary from AWS S3
Expand Down Expand Up @@ -57,11 +52,17 @@ jobs:
mv amazon-chime-sdk-machine-learning.aar ./amazon-chime-sdk/libs
# Setup gradle caching to reduce AVD start-up time
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Gradle cache
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3

- name: AVD cache
uses: actions/cache@v3
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand All @@ -71,22 +72,22 @@ jobs:

- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: ReactiveCircus/android-emulator-runner@v2
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 30
target: google_apis
arch: x86_64
# target: google_apis
# arch: x86_64
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: echo "Generated AVD snapshot for caching."

# Execute unit tests
- name: Unit Test with Android Emulator Runner
uses: ReactiveCircus/android-emulator-runner@v2
uses: reactivecircus/android-emulator-runner@v2
with:
target: google_apis
arch: x86_64
# target: google_apis
# arch: x86_64
api-level: 30
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
Expand Down

0 comments on commit 7e8e6bc

Please sign in to comment.