Skip to content

Commit

Permalink
Revert avd caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Oct 12, 2024
1 parent 13d5a4f commit 7319626
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ jobs:
distribution: 'zulu'
java-version: 23

# - uses: actions/cache@v4
# id: avd-cache
# with:
# path: |
# ~/.android/avd/*
# ~/.android/adb*
# ~/.android/debug.keystore
# key: avd-${{ matrix.api-level }}-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.arch }}
- uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
~/.android/debug.keystore
key: avd-${{ matrix.api-level }}-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.arch }}

- uses: gradle/actions/setup-gradle@v4

Expand All @@ -78,23 +78,23 @@ jobs:
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# - name: run emulator to generate snapshot for caching
# if: steps.avd-cache.outputs.cache-hit != 'true'
# uses: ./
# with:
# api-level: ${{ matrix.api-level }}
# target: ${{ matrix.target }}
# arch: ${{ matrix.arch }}
# profile: Galaxy Nexus
# cores: 2
# sdcard-path-or-size: 100M
# avd-name: test
# force-avd-creation: false
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: false
# working-directory: ./test-fixture/
# channel: canary
# script: echo "Generated AVD snapshot for caching."
- name: run emulator to generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: ./
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
profile: Galaxy Nexus
cores: 2
sdcard-path-or-size: 100M
avd-name: test
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
working-directory: ./test-fixture/
channel: canary
script: echo "Generated AVD snapshot for caching."

- name: run action
uses: ./
Expand Down

0 comments on commit 7319626

Please sign in to comment.