Skip to content

Commit

Permalink
Update syntax for actions/cache
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin committed Dec 28, 2024
1 parent 2e3ea11 commit 9d6f529
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: AVD cache
uses: actions/cache@v4
- name: Restore AVD cache if present
uses: actions/cache/restore@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
save-always: true

- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
Expand All @@ -97,7 +96,7 @@ jobs:
script: echo "Generated AVD snapshot for caching."

- name: Save AVD to cache
if: steps.avd-cache.outputs.cache-hit != 'true'
if: always() && steps.avd-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: |
Expand Down

0 comments on commit 9d6f529

Please sign in to comment.