diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index ff9369c1..8bb15f98 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -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 @@ -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: | @@ -71,11 +72,11 @@ 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 @@ -83,10 +84,10 @@ jobs: # 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