Skip to content

Commit

Permalink
Don't cache AVD. This was useful during macos days. avd creation on u…
Browse files Browse the repository at this point in the history
…buntu is fine already
  • Loading branch information
ViliusSutkus89 committed Aug 9, 2024
1 parent 3a1166d commit 122fc41
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/android_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,30 +116,12 @@ jobs:
name: dotconan2
path: ~/.conan2

- name: Android Virtual Device (AVD) cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.arch }}-${{ matrix.api-level }}-r4

- name: Enable KVM group perms
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: 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.api-level }}
arch: ${{ matrix.arch }}
target: google_apis
script: echo "Generated AVD snapshot for caching."

- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
Expand Down

0 comments on commit 122fc41

Please sign in to comment.